func TestNewCarWithAssert(t *testing.T) {
	c, err := NewCar("", 100)
	assert.NotNil(t, err)
	assert.Error(t, err)
	assert.Nil(t, c)

	c, err = NewCar("foo", 100)
	assert.Nil(t, err)
	assert.NoError(t, err)
	assert.NotNil(t, c)
	assert.Equal(t, "foo", c.Name)
}
// Simple testing with testify tool
Simple testing with testify tool
// Simple testing with testify tool
func TestNewCarWithAssert(t *testing.T) {
	c, err := NewCar("", 100)
	assert.NotNil(t, err)
	assert.Error(t, err)
	assert.Nil(t, c)
	c, err = NewCar("foo", 100)
	assert.Nil(t, err)
	assert.NoError(t, err)
	assert.NotNil(t, c)
	assert.Equal(t, "foo", c.Name)
}
func TestNewCarWithAssert ( t * testing . T ) { c , err := NewCar ( " " , 100 ) assert . NotNil ( t , err ) assert . Error ( t , err ) assert . Nil ( t , c ) c , err = NewCar ( " " , 100 ) assert . Nil ( t , err ) assert . NoError ( t , err ) assert . NotNil ( t , c ) assert . Equal ( t , " " , c . Name ) }
Simple testing with testify tool
Simple testing with testify tool