We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f4ebda commit 0549fe0Copy full SHA for 0549fe0
scripts/test.py
@@ -87,7 +87,6 @@ def convert_to_float(text: str):
87
try:
88
val = float(text)
89
except ValueError:
90
- print(f"line {no + 1}: {text} is not float")
91
val = f"'{text}'"
92
return val
93
@@ -105,10 +104,10 @@ def convert_to_float(text: str):
105
104
):
106
if type(test_result) != float or abs(test_result - expected_result) > 1e-6:
107
is_success = False
108
- print(f"line {no + 1}: {test_result} != {expected_result}")
+ print(f"Error: line {no + 1}: {test_result} != {expected_result}")
109
110
111
- print("result number not matched")
+ print("Error: different number of lines")
112
113
return is_success
114
0 commit comments