I’m having an error in my python probability calculator with the testing suite. I think my program is working properly, but I get the following error from the tests:
..E
======================================================================
ERROR: test_prob_experiment (test_module.UnitTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/fcc-probability-calculator-1/test_module.py", line 31, in test_prob_experiment
self.assertAlmostEqual(actual, expected, delta = 0.01, msg = 'Expected experiment method to return a different probability.')
File "/usr/lib/python3.8/unittest/case.py", line 943, in assertAlmostEqual
diff = abs(first - second)
TypeError: unsupported operand type(s) for -: 'str' and 'float'
----------------------------------------------------------------------
Ran 3 tests in 0.186s
FAILED (errors=1)
Here’s my repl.it for referencing what’s going on, I cannot explain it any further really, I tested the types of my outputs, the probability calculator is returning a float, which should be all the test is evaluating?