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

Fix percentage of success when testing the parser against stdlib. #28

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading