Skip to content

Commit 69814d7

Browse files
committed
[fix](mips): test.py - add precision check
1 parent 6e6bcdf commit 69814d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def compare(test_result_file: pathlib.Path, output_file: pathlib.Path):
8888
for no, (test_result, expected_result) in enumerate(
8989
zip(test_results, expected_results)
9090
):
91-
if test_result != expected_result:
91+
if abs(test_result - expected_result) > 1e-6:
9292
is_success = False
9393
print(f"line {no + 1}: {test_result} != {expected_result}")
9494

0 commit comments

Comments
 (0)