simple hashmap implementation

This commit is contained in:
2026-07-16 23:14:42 +02:00
parent c541496db5
commit 709d977436
5 changed files with 197 additions and 11 deletions
+4
View File
@@ -24,6 +24,10 @@ expect_equal func($T type, expected, actual T, location SourceLocation) void ! E
}
}
expect_type func($Expected, $Actual type, _ Actual, location SourceLocation) void ! Error {
try expect($(Expected == Actual), location)
}
run func(name []u8, callback *func() void ! Error) bool {
callback() catch |_| {
debug.print("{s} [failed]\n", {name,})