diff options
| author | Phil <homan.phil@gmail.com> | 2022-09-01 11:51:45 -0700 |
|---|---|---|
| committer | Phil <homan.phil@gmail.com> | 2022-09-01 11:51:45 -0700 |
| commit | d45661c405bfb36c0e4dd385d1f87721f3e8feba (patch) | |
| tree | c347d933d099886b0089443a4f318a6e297096dc /tests | |
| parent | 002bec256adcfa1ff41ba1437dbe912ae01ee8c5 (diff) | |
cleanup slice sorting with indices changes
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core/slice/test_core_slice.odin | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/core/slice/test_core_slice.odin b/tests/core/slice/test_core_slice.odin index 8caf911e8..08dc2d3ae 100644 --- a/tests/core/slice/test_core_slice.odin +++ b/tests/core/slice/test_core_slice.odin @@ -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 { |