Self.assertEqual(actual, expected, 'Expected different output when calling "arithmetic_arranger()" with ')ĪssertionError: ' 123 \n 855 - 2 43 49 ' != ' 123\n 855 - 2 43 49\n-' Line4 = str(results).rjust(length 2) " "Īrranged_problems = line1 "\n" line2 "\n" line3 "\n" line4Īrranged_problems = line1 "\n" line2 "\n" line3ĮFError: Numbers cannot be more than four digits.ĮRROR: test_incorrect_operator (test_module.UnitTests)įile "/home/runner/InconsequentialStripedRatios/test_module.py", line 22, in test_incorrect_operatorĪctual = arithmetic_arranger()įile "/home/runner/InconsequentialStripedRatios/arithmetic_arranger.py", line 42, in arithmetic_arrangerįile "/usr/lib/python3.8/_sitebuiltins.py", line 26, in _call_ĮRROR: test_only_digits (test_module.UnitTests)įile "/home/runner/InconsequentialStripedRatios/test_module.py", line 32, in test_only_digitsįile "/home/runner/InconsequentialStripedRatios/arithmetic_arranger.py", line 34, in arithmetic_arrangerĮRROR: test_too_many_digits (test_module.UnitTests)įile "/home/runner/InconsequentialStripedRatios/test_module.py", line 27, in test_too_many_digitsįile "/home/runner/InconsequentialStripedRatios/arithmetic_arranger.py", line 37, in arithmetic_arrangerĮRROR: test_too_many_problems (test_module.UnitTests)įile "/home/runner/InconsequentialStripedRatios/test_module.py", line 17, in test_too_many_problemsįile "/home/runner/InconsequentialStripedRatios/arithmetic_arranger.py", line 10, in arithmetic_arrangerįAIL: test_arrangement (test_module.UnitTests)įile "/home/runner/InconsequentialStripedRatios/test_module.py", line 10, in test_arrangement Print("Error: Operator must be ' ' or '-'.") Print("Error: Numbers cannot be more than four digits.") Print("Error: Numbers must only contain digits") ![]() Your code so far def arithmetic_arranger(problems,optional = None): This is my first python project, forgive me if the problem is silly. ![]() So i have fixed my code multiple times, and tested it in atom, however in repl it keeps giving me multiple errors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |