In the following block of code lines 6 and 8 were the ones that were added. However, lines 11 and 12 were never updated to actually use these new parameters. The 3
in line 11 should have been updated to use fizz_divisor
and the 5
in line 12 should have been updated to use buzz_divisor
.
test_divisible_by_both (__main__.TestFizzBuzz) ... ok
test_divisible_by_five (__main__.TestFizzBuzz) ... ok
test_divisible_by_none (__main__.TestFizzBuzz) ... ok
test_divisible_by_three (__main__.TestFizzBuzz) ... ok
test_with_alternate_divisors (__main__.TestFizzBuzz) ... test_with_alternate_words (__main__.TestFizzBuzz) ... ok
======================================================================
FAIL: test_with_alternate_divisors (__main__.TestFizzBuzz) [Alternate Divisors: Divisible by First]
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test_fizzbuzz.py", line 41, in test_with_alternate_divisors
self.assertEqual(fizzbuzz_for_num(7, fizz_divisor=7, buzz_divisor=11), "Fizz")
AssertionError: '7' != 'Fizz'
- 7
+ Fizz
======================================================================
FAIL: test_with_alternate_divisors (__main__.TestFizzBuzz) [Alternate Divisors: Divisible by Second]
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test_fizzbuzz.py", line 43, in test_with_alternate_divisors
self.assertEqual(fizzbuzz_for_num(11, fizz_divisor=7, buzz_divisor=11), "Buzz")
AssertionError: '11' != 'Buzz'
- 11
+ Buzz
======================================================================
FAIL: test_with_alternate_divisors (__main__.TestFizzBuzz) [Alternate Divisors: Divisible by Both]
----------------------------------------------------------------------
Traceback (most recent call last):
File "./test_fizzbuzz.py", line 45, in test_with_alternate_divisors
self.assertEqual(fizzbuzz_for_num(77, fizz_divisor=7, buzz_divisor=11), "FizzBuzz")
AssertionError: '77' != 'FizzBuzz'
- 77
+ FizzBuzz
----------------------------------------------------------------------
Ran 6 tests in 0.001s
FAILED (failures=3)