|
@@ -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
|