Fix final failed test count output being in the wrong place

This commit is contained in:
Nathan McCarty 2024-12-31 16:06:25 -05:00
parent f085e8e14b
commit 5080b94b32

View file

@ -77,13 +77,12 @@ multi MAIN(
colored('tests failed', 'red bold underline');
}
$total-failures += $package-failures;
say '';
}
say '';
if $total-failures == 0 {
say 'All ', colored('tests passed', 'green underline');
} else {
say $total-failures, ' ', colored('tests failed', 'red bold underline');
}
}
say '';
if $total-failures == 0 {
say 'All ', colored('tests passed', 'green underline');
} else {
say $total-failures, ' ', colored('tests failed', 'red bold underline');
}
}