Skip to content

Commit b31c185

Browse files
committed
replace forgotten test
1 parent 55d6252 commit b31c185

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/std/static_string_map.zig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,20 @@ fn testMap(comptime map: anytype) !void {
261261
try testing.expect(null == map.get("averylongstringthathasnomatches"));
262262
}
263263

264+
test "void value type, slice of structs" {
265+
const slice = [_]TestKVVoid{
266+
.{"these"},
267+
.{"have"},
268+
.{"nothing"},
269+
.{"incommon"},
270+
.{"samelen"},
271+
};
272+
const map = TestMapVoid.initComptime(slice);
273+
try testSet(map);
274+
// Default comparison is case sensitive
275+
try testing.expect(null == map.get("NOTHING"));
276+
}
277+
264278
test "void value type, list literal of list literals" {
265279
const slice = [_]TestKVVoid{
266280
.{"these"},

0 commit comments

Comments
 (0)