Skip to content

Commit 0807655

Browse files
committed
put back most of one test
1 parent dd32e18 commit 0807655

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/std/static_string_map.zig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,21 @@ const TestMapIgnoreCase = StaticStringMapIgnoreCase(TestEnum);
187187
const testing = std.testing;
188188
const test_alloc = testing.allocator;
189189

190+
test "list literal of list literals" {
191+
const slice: []const TestKV = &.{
192+
.{ "these", .D },
193+
.{ "have", .A },
194+
.{ "nothing", .B },
195+
.{ "incommon", .C },
196+
.{ "samelen", .E },
197+
};
198+
199+
const map = TestMap.initComptime(slice);
200+
try testMap(map);
201+
// Default comparison is case sensitive
202+
try testing.expect(null == map.get("NOTHING"));
203+
}
204+
190205
test "get/has with edge cases" {
191206
const map = StaticStringMap(u32).initComptime(&.{
192207
.{ "a", 0 },

0 commit comments

Comments
 (0)