freeCodeCamp/CurriculumExpansion

Test 1 and test 6 failed

Closed this issue · 0 comments

My ouptut is same as the desired output but still it is showing Test 1 and Test 6 failed

32 3801 45 123

  • 698 - 2 + 43 + 49

F..

F..

FAIL: test_arangement (test_module.UnitTests)

Traceback (most recent call last):
File "c:\Users\anant\OneDrive\Desktop\Study Material\puthon prog\test_module.py", line 11, in test_arangement
self.assertEqual(
AssertionError: ' [23 chars] 123 \n+ 855 - 2 + 43 + 49 [37 chars] \n' != ' [23 chars] 123\n+
855 - 2 + 43 + 49\n-----[23 chars]----'

  • 3      3801      45      123
    

? ----

  • 3      3801      45      123
    
    • 855 - 2 + 43 + 49
      ? ----
    • 855 - 2 + 43 + 49

? -----

  • ----- ------ ---- ----- : Expected different output when calling "arithmetic_arranger()" with ["3 + 855", "3801 - 2", "45 + 43", "123 + 49"]

======================================================================
FAIL: test_solutions (test_module.UnitTests)

Traceback (most recent call last):
File "c:\Users\anant\OneDrive\Desktop\Study Material\puthon prog\test_module.py", line 52, in test_solutions
self.assertEqual(
AssertionError: ' 3[23 chars] 123 \n- 698 - 3801 + 43 + 49 [83 chars] \n' != ' 3[23 chars] 123\n-
698 - 3801 + 43 + 49\n-----[57 chars] 172'

  • 32 1 45 123
    ? ----
  • 32 1 45 123
    • 698 - 3801 + 43 + 49
      ? ----
      +- 698 - 3801 + 43 + 49

? ----


  • -666 -3800 88 172- -666
  • -3800
  • 88
  • 172
    : Expected solutions to be correctly displayed in output when calling "arithmetic_arranger()" with arithemetic problems and a second argument of True.

Ran 6 tests in 0.004s

FAILED (failures=2)