@@ -26,9 +26,7 @@ def load_and_run():
2626 for file in student_files :
2727
2828 if file in [
29- "students_submissions/gcd_mma48.py" , # RecursionError: maximum recursion depth exceeded
30- "students_submissions/gcd_sa375.py" , # ValueError: Both numbers cannot be ZERO!
31- "students_submissions/gcd_db624.py" , # RecursionError: maximum recursion depth exceeded
29+ "students_submissions/gcd_dt393.py" , # NameError: name 'math' is not defined. Did you forget to import 'math'?
3230 ]:
3331 continue
3432
@@ -62,21 +60,21 @@ def load_and_run():
6260 isprime # Add isprime to the global namespace
6361 )
6462 print (f"Running { module_name } 's submission..." )
65- run_gcd_test (gcd_func , 54 , 24 , 6 )
66- run_gcd_test (gcd_func , 48 , 18 , 6 )
67- run_gcd_test (gcd_func , 101 , 10 , 1 )
68- run_gcd_test (gcd_func , 270 , 192 , 6 )
63+ # run_gcd_test(gcd_func, 54, 24, 6)
64+ # run_gcd_test(gcd_func, 48, 18, 6)
65+ # run_gcd_test(gcd_func, 101, 10, 1)
66+ # run_gcd_test(gcd_func, 270, 192, 6)
6967 # Edge case test cases
70- # run_gcd_test(gcd_func, 0, 0, None) # Both numbers are zero
71- # run_gcd_test(gcd_func, -54, 24, 6) # One negative number
72- # run_gcd_test(gcd_func, 54, -24, 6) # One negative number
73- # run_gcd_test(gcd_func, -54, -24, 6) # Both numbers are negative
74- # run_gcd_test(gcd_func, 0, 24, 24) # One number is zero
75- # run_gcd_test(gcd_func, 24, 0, 24) # One number is zero
76- # run_gcd_test(gcd_func, 17, 13, 1) # Both numbers are prime
77- # run_gcd_test(gcd_func, 1000000000, 2, 2) # Large number and small number
78- # run_gcd_test(gcd_func, 123456789, 987654321, 9) # Large numbers
79- # run_gcd_test(gcd_func, 1, 1, 1) # Both numbers are one
68+ run_gcd_test (gcd_func , 0 , 0 , None ) # Both numbers are zero
69+ run_gcd_test (gcd_func , - 54 , 24 , 6 ) # One negative number
70+ run_gcd_test (gcd_func , 54 , - 24 , 6 ) # One negative number
71+ run_gcd_test (gcd_func , - 54 , - 24 , 6 ) # Both numbers are negative
72+ run_gcd_test (gcd_func , 0 , 24 , 24 ) # One number is zero
73+ run_gcd_test (gcd_func , 24 , 0 , 24 ) # One number is zero
74+ run_gcd_test (gcd_func , 17 , 13 , 1 ) # Both numbers are prime
75+ run_gcd_test (gcd_func , 1000000000 , 2 , 2 ) # Large number and small number
76+ run_gcd_test (gcd_func , 123456789 , 987654321 , 9 ) # Large numbers
77+ run_gcd_test (gcd_func , 1 , 1 , 1 ) # Both numbers are one
8078 print ()
8179 else :
8280 print (f"ERROR: { module_name } 's submission does not have a gcd function\n " )
0 commit comments