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

Commit

Permalink
Fix percentage of success when testing the parser against stdlib.
Browse files Browse the repository at this point in the history
  • Loading branch information
hugopl authored and nobodywasishere committed Dec 6, 2024
1 parent 8c59563 commit 3360d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/real_world/stdlib
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ stdlib_files.each do |stdlib_file|
printf("%-63s %s %s\n", test.label, success ? PASS : FAIL, elapsed_ms)
end

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

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

0 comments on commit 3360d9e

Please sign in to comment.