FFFF
======================================================================
FAIL: test_floats_with_error_in_multiplication (test.CoinCalculatorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20130323-7534-dithgs/test.py", line 26, in test_floats_with_error_in_multiplication
self.assertEqual(calculate_coins(0.57), {1: 0, 2: 1, 5: 1, 10: 0, 20: 0, 50: 1, 100: 0})
AssertionError: {1: 0, 2: 3, 100: 0, 5: 1, 20: 0, 10: 1, 50: 1} != {1: 0, 2: 1, 20: 0, 5: 1, 100: 0, 10: 0, 50: 1}
- {1: 0, 2: 3, 5: 1, 10: 1, 20: 0, 50: 1, 100: 0}
? ^ ^
+ {1: 0, 2: 1, 5: 1, 10: 0, 20: 0, 50: 1, 100: 0}
? ^ ^
======================================================================
FAIL: test_one (test.CoinCalculatorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20130323-7534-dithgs/test.py", line 16, in test_one
self.assertEqual(calculate_coins(0.01), {1: 1, 2: 0, 5: 0, 10: 0, 20: 0, 50: 0, 100: 0})
AssertionError: {1: 1, 2: 3, 100: 0, 5: 1, 20: 0, 10: 1, 50: 1} != {1: 1, 2: 0, 20: 0, 5: 0, 100: 0, 10: 0, 50: 0}
- {1: 1, 2: 3, 5: 1, 10: 1, 20: 0, 50: 1, 100: 0}
? ^ ^ ^ ^
+ {1: 1, 2: 0, 5: 0, 10: 0, 20: 0, 50: 0, 100: 0}
? ^ ^ ^ ^
======================================================================
FAIL: test_one_of_each (test.CoinCalculatorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20130323-7534-dithgs/test.py", line 13, in test_one_of_each
self.assertEqual(calculate_coins(1.88), {x:1 for x in self.zero_dict})
AssertionError: {1: 2, 2: 4, 100: 1, 5: 2, 20: 1, 10: 2, 50: 2} != {1: 1, 2: 1, 20: 1, 5: 1, 100: 1, 10: 1, 50: 1}
- {1: 2, 2: 4, 5: 2, 10: 2, 20: 1, 50: 2, 100: 1}
? ^ ^ ^ ^ ^
+ {1: 1, 2: 1, 5: 1, 10: 1, 20: 1, 50: 1, 100: 1}
? ^ ^ ^ ^ ^
======================================================================
FAIL: test_zero (test.CoinCalculatorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/d20130323-7534-dithgs/test.py", line 10, in test_zero
self.assertEqual(calculate_coins(0), self.zero_dict)
AssertionError: {1: 2, 2: 4, 100: 1, 5: 2, 20: 1, 10: 2, 50: 2} != {1: 0, 2: 0, 20: 0, 5: 0, 100: 0, 10: 0, 50: 0}
- {1: 2, 2: 4, 5: 2, 10: 2, 20: 1, 50: 2, 100: 1}
? ^ ^ ^ ^ ^ ^ ^
+ {1: 0, 2: 0, 5: 0, 10: 0, 20: 0, 50: 0, 100: 0}
? ^ ^ ^ ^ ^ ^ ^
----------------------------------------------------------------------
Ran 4 tests in 0.009s
FAILED (failures=4)