Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit faa92d7

Browse files
committed
Fix percentage of success when testing the parser against stdlib.
1 parent 8c59563 commit faa92d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/real_world/stdlib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ stdlib_files.each do |stdlib_file|
6464
printf("%-63s %s %s\n", test.label, success ? PASS : FAIL, elapsed_ms)
6565
end
6666

67-
printf("%% of success: %.2f%%\n", pass / stdlib_files.size)
67+
printf("%% of success: %.2f%%\n", 100 * (pass / stdlib_files.size))
6868

6969
if failed != expected_fail
7070
abort("List of failed tests difer, check stdlib_failed.txt and stdlib_expected_to_fail.txt".colorize.red)

0 commit comments

Comments
 (0)