cleanup slice sorting with indices changes

This commit is contained in:
Phil committed 2022-09-01 11:51:45 -07:00
1 parent 002bec256a
commit d45661c405
2 files changed
+7 -4

No files matched your search

+4 -1
View File
@@ -51,8 +51,11 @@ test_sort_with_indices :: proc(t: ^testing.T) {
r := rand.create(seed)
vals := make([]u64, test_size)
defer delete(vals)
r_idx := make([]int, test_size) // Reverse index
defer {
delete(vals)
delete(r_idx)
}
// Set up test values
for _, i in vals {