Prefer log.error over fail_now in this case

This commit is contained in:
Feoramund
2024-06-15 10:39:28 -04:00
parent bb823d5ba0
commit f353adc7fb
+2 -1
View File
@@ -3,6 +3,7 @@ package test_core_slice
import "core:slice"
import "core:testing"
import "core:math/rand"
import "core:log"
@test
test_sort_with_indices :: proc(t: ^testing.T) {
@@ -205,7 +206,7 @@ test_permutation_iterator :: proc(t: ^testing.T) {
n += item
}
if n in seen {
testing.fail_now(t, "Permutation iterator made a duplicate permutation.")
log.error("Permutation iterator made a duplicate permutation.")
return
}
seen[n] = true