Implicitly unwrapped optional value in defer incorrectly copied #1982.

This commit is contained in:
Christoffer Lerno
2025-02-20 03:44:22 +01:00
parent 8bf9ca89a1
commit 341a70bd5d
4 changed files with 70 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ fn void main(String[] args)
// Print the test result
io::printfn("Found %d tests: %.1f%% (%d / %d) passed (%d skipped).",
test_count, 100 * success_count / math::max(1, test_count - skip_count),
test_count, (100.0 * success_count) / math::max(1, test_count - skip_count),
success_count, test_count - skip_count, skip_count);
libc::exit(success_count == test_count - skip_count ? 0 : 1);
}