From 1997c38e9796e7019dc30515cd2a97dc670761d5 Mon Sep 17 00:00:00 2001 From: kayomn Date: Mon, 17 Oct 2022 14:04:44 +0100 Subject: [PATCH] Fix test build error in hash table --- src/ona/table.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ona/table.zig b/src/ona/table.zig index d42580d..040a4f7 100644 --- a/src/ona/table.zig +++ b/src/ona/table.zig @@ -207,8 +207,8 @@ test "Hashed table manipulation with string context" { const foo = @as(u32, 69); - testing.expectEqual(table.remove("foo"), null); + try testing.expectEqual(table.remove("foo"), null); try table.insert("foo", foo); - testing.expectEqual(table.remove("foo"), foo); - testing.expectEqual(table.remove("foo"), null); + try testing.expectEqual(table.remove("foo"), foo); + try testing.expectEqual(table.remove("foo"), null); }