Make tests scripts error if a test fails

Additionally fixes tests that were found broken because
of this.
This commit is contained in:
Lucas Perlind
2023-04-03 16:49:14 +10:00
parent 22e0f5ecd0
commit c59ad24856
7 changed files with 38 additions and 38 deletions
@@ -151,6 +151,13 @@ shoco_test :: proc(t: ^testing.T) {
}
for v in Shoco_Tests {
when ODIN_OS == .Windows {
v := v
// Compressed source files are not encoded with carriage returns but git replaces raw files lf with crlf on commit (on windows only)
// So replace crlf with lf on windows
v.raw, _ = bytes.replace_all(v.raw, { 0xD, 0xA }, { 0xA })
}
expected_raw := len(v.raw)
expected_compressed := len(v.compressed)