sync stdlib from honey

This commit is contained in:
2026-07-22 00:53:18 +02:00
parent 9c6215776e
commit 09571ffeb9
10 changed files with 279 additions and 23 deletions
+13
View File
@@ -0,0 +1,13 @@
import "@std/mem"
import "@std/testing"
handles_put_and_get test {
map StringHashMap(u32) = init(mem.c_allocator)
defer deinit(&map)
try put(&map, "key", 42)
value :: get(&map, "key")
try testing.expect_type(?u32, value)
try testing.expect_equal(42, value?)
}