mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
fix test leaks
This commit is contained in:
@@ -72,6 +72,7 @@ test_map_get :: proc(t: ^testing.T) {
|
|||||||
2 = {20, 200, 2000},
|
2 = {20, 200, 2000},
|
||||||
3 = {30, 300, 3000},
|
3 = {30, 300, 3000},
|
||||||
}
|
}
|
||||||
|
defer delete(m)
|
||||||
|
|
||||||
k1, v1, ok1 := runtime.map_get(m, 1)
|
k1, v1, ok1 := runtime.map_get(m, 1)
|
||||||
testing.expect_value(t, k1, 1)
|
testing.expect_value(t, k1, 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user