mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Prefer log.error over fail_now in this case
This commit is contained in:
@@ -3,6 +3,7 @@ package test_core_slice
|
|||||||
import "core:slice"
|
import "core:slice"
|
||||||
import "core:testing"
|
import "core:testing"
|
||||||
import "core:math/rand"
|
import "core:math/rand"
|
||||||
|
import "core:log"
|
||||||
|
|
||||||
@test
|
@test
|
||||||
test_sort_with_indices :: proc(t: ^testing.T) {
|
test_sort_with_indices :: proc(t: ^testing.T) {
|
||||||
@@ -205,7 +206,7 @@ test_permutation_iterator :: proc(t: ^testing.T) {
|
|||||||
n += item
|
n += item
|
||||||
}
|
}
|
||||||
if n in seen {
|
if n in seen {
|
||||||
testing.fail_now(t, "Permutation iterator made a duplicate permutation.")
|
log.error("Permutation iterator made a duplicate permutation.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
seen[n] = true
|
seen[n] = true
|
||||||
|
|||||||
Reference in New Issue
Block a user