Help with C2_W4_Assignment UNQ_C3

Hi,
I am getting this error and cannot solve it. Could you help me out?
Error: Data-type mismatch for Test Case 1.
Error: Wrong output for Test Case 1.
Error: Wrong output for Test Case 3.
Error: Wrong output for Test Case 4.
Error: Wrong output for Test Case 5.
3 Tests passed
5 Tests failed

AssertionError Traceback (most recent call last)
in
1 # test cell ex1 - do not modify this test cell
----> 2 harrell_c_test(harrell_c)

~/work/W4A1/public_tests.py in harrell_c_test(target)
191 ]
192
→ 193 multiple_test(test_cases, target)
194
195

~/work/W4A1/test_utils.py in multiple_test(test_cases, target)
121 print(‘\033[92m’, success," Tests passed")
122 print(‘\033[91m’, len(test_cases) - success, " Tests failed")
→ 123 raise AssertionError(“Not all tests were passed for {}. Check your equations and avoid using global variables inside the function.”.format(target.name))

AssertionError: Not all tests were passed for harrell_c. Check your equations and avoid using global variables inside the function.

My lab ID: gkyrvufjsbgl

Thank you!

Hi @Tamara_Iungman,

Can you please send me your code in a message to check it and see what is going wrong.

Samuel

Hi Samuel,
Thank you so much I have already found the error

Hi @Samuel_Chazy I’m having the same problem. Please help. Thank you!

My lab ID: ocnqqpzaalan

Here is the error I’m getting:

Error: Wrong output for Test Case 1.
Error: Wrong output for Test Case 3.
Error: Wrong output for Test Case 4.
Error: Wrong output for Test Case 5.
Error: Wrong output for Test Case 6.
3 Tests passed
5 Tests failed

AssertionError Traceback (most recent call last)
in
1 # test cell ex1 - do not modify this test cell
----> 2 harrell_c_test(harrell_c)

~/work/W4A1/public_tests.py in harrell_c_test(target)
191 ]
192
→ 193 multiple_test(test_cases, target)
194
195

~/work/W4A1/test_utils.py in multiple_test(test_cases, target)
121 print(‘\033[92m’, success," Tests passed")
122 print(‘\033[91m’, len(test_cases) - success, " Tests failed")
→ 123 raise AssertionError(“Not all tests were passed for {}. Check your equations and avoid using global variables inside the function.”.format(target.name))

AssertionError: Not all tests were passed for harrell_c. Check your equations and avoid using global variables inside the function.

Hello Michael,
I got the same error. Did you figure out the cause ?

Hi Samuel_Chazy,
I got the same error like Tamara_lungman. I made some modifications & the best I got was that I passed 7 test cases & failed in 1. I can’t recognise the error

Hi @Ehab_Mohamed_Elgamal,

Can you please share your code in a private message so that i can’t check.

Samuel

Sure

Thanks a lot for your time & guidance Samuel_Chazy. The issue was resolved.