We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55d6252 commit b31c185Copy full SHA for b31c185
lib/std/static_string_map.zig
@@ -261,6 +261,20 @@ fn testMap(comptime map: anytype) !void {
261
try testing.expect(null == map.get("averylongstringthathasnomatches"));
262
}
263
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
+
278
test "void value type, list literal of list literals" {
279
const slice = [_]TestKVVoid{
280
.{"these"},
0 commit comments