예제 #1
0
 def get(self, input_variable):
     return FizzBuzzService.validate(input_variable)
 def test_other(self):
     self.assertEqual(2, FizzBuzzService.fb_validator(2))
     self.assertEqual(7, FizzBuzzService.fb_validator(7))
     self.assertEqual(11, FizzBuzzService.fb_validator(11))
 def test_fizz(self):
     self.assertEqual("Fizz", FizzBuzzService.fb_validator(3))
     self.assertEqual("Fizz", FizzBuzzService.fb_validator(33))
     self.assertEqual("Fizz", FizzBuzzService.fb_validator(399))
 def test_buzz(self):
     self.assertEqual("Buzz", FizzBuzzService.fb_validator(5))
     self.assertEqual("Buzz", FizzBuzzService.fb_validator(50))
     self.assertEqual("Buzz", FizzBuzzService.fb_validator(500))
 def test_fizzbuzz(self):
     self.assertEqual("FizzBuzz", FizzBuzzService.fb_validator(15))
     self.assertEqual("FizzBuzz", FizzBuzzService.fb_validator(30))
     self.assertEqual("FizzBuzz", FizzBuzzService.fb_validator(300))
예제 #6
0
 def test_fizzbuzz(self):
     self.assertEqual('FizzBuzz', FizzBuzzService.validate(45))
     self.assertEqual('FizzBuzz', FizzBuzzService.validate(60))
 def get(self, input_var):
     return FizzBuzzService.fb_validator(input_var)
예제 #8
0
 def test_buzz(self):
     self.assertEqual('Buzz', FizzBuzzService.validate(5))
     self.assertEqual('Buzz', FizzBuzzService.validate(10))
예제 #9
0
 def test_firsttest(self):
     self.assertEqual('fail', FizzBuzzService.validate(32))
예제 #10
0
 def test_fizz(self):
     self.assertEqual("Fizz", FizzBuzzService.validate(3))
     self.assertEqual("Fizz", FizzBuzzService.validate(9999))
     self.assertEqual("Fizz", FizzBuzzService.validate(33))
예제 #11
0
 def test_fizzbuzz(self):
     self.assertEqual(13, FizzBuzzService.validate(13))
     self.assertEqual(11, FizzBuzzService.validate(11))
예제 #12
0
 def test_buzz(self):
     self.assertEqual("Buzz", FizzBuzzService.validate(5))
     self.assertEqual("Buzz", FizzBuzzService.validate(55))
     self.assertEqual("Buzz", FizzBuzzService.validate(5555))