diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-02-26 23:43:02 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-26 23:43:02 -0800 |
| commit | 085bde6889925b486291ddf1450b6bb6c8562a8f (patch) | |
| tree | 02f7a49b4378dc2387b825bfc19825405f4502ca /lib/std/comptime_string_map.zig | |
| parent | 4e2570baafb587c679ee0fc5e113ddeb36522a5d (diff) | |
| parent | 726a1149e05669e5cc05a16ce877bbb2be787e39 (diff) | |
| download | zig-085bde6889925b486291ddf1450b6bb6c8562a8f.tar.gz zig-085bde6889925b486291ddf1450b6bb6c8562a8f.zip | |
Merge pull request #19087 from squeek502/redundant-test-naming
Remove redundant test name prefixes now that test names are fully qualified
Diffstat (limited to 'lib/std/comptime_string_map.zig')
| -rw-r--r-- | lib/std/comptime_string_map.zig | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/std/comptime_string_map.zig b/lib/std/comptime_string_map.zig index 6a81bb7f3c..2bfcad1e77 100644 --- a/lib/std/comptime_string_map.zig +++ b/lib/std/comptime_string_map.zig @@ -142,7 +142,7 @@ const TestEnum = enum { E, }; -test "ComptimeStringMap list literal of list literals" { +test "list literal of list literals" { const map = ComptimeStringMap(TestEnum, .{ .{ "these", .D }, .{ "have", .A }, @@ -157,7 +157,7 @@ test "ComptimeStringMap list literal of list literals" { try std.testing.expect(null == map.get("NOTHING")); } -test "ComptimeStringMap array of structs" { +test "array of structs" { const KV = struct { []const u8, TestEnum }; const map = ComptimeStringMap(TestEnum, [_]KV{ .{ "these", .D }, @@ -170,7 +170,7 @@ test "ComptimeStringMap array of structs" { try testMap(map); } -test "ComptimeStringMap slice of structs" { +test "slice of structs" { const KV = struct { []const u8, TestEnum }; const slice: []const KV = &[_]KV{ .{ "these", .D }, @@ -198,7 +198,7 @@ fn testMap(comptime map: anytype) !void { try std.testing.expect(null == map.get("averylongstringthathasnomatches")); } -test "ComptimeStringMap void value type, slice of structs" { +test "void value type, slice of structs" { const KV = struct { []const u8 }; const slice: []const KV = &[_]KV{ .{"these"}, @@ -215,7 +215,7 @@ test "ComptimeStringMap void value type, slice of structs" { try std.testing.expect(null == map.get("NOTHING")); } -test "ComptimeStringMap void value type, list literal of list literals" { +test "void value type, list literal of list literals" { const map = ComptimeStringMap(void, .{ .{"these"}, .{"have"}, @@ -258,7 +258,7 @@ test "ComptimeStringMapWithEql" { try std.testing.expect(map.has("ThESe")); } -test "ComptimeStringMap empty" { +test "empty" { const m1 = ComptimeStringMap(usize, .{}); try std.testing.expect(null == m1.get("anything")); @@ -266,7 +266,7 @@ test "ComptimeStringMap empty" { try std.testing.expect(null == m2.get("anything")); } -test "ComptimeStringMap redundant entries" { +test "redundant entries" { const map = ComptimeStringMap(TestEnum, .{ .{ "redundant", .D }, .{ "theNeedle", .A }, @@ -284,7 +284,7 @@ test "ComptimeStringMap redundant entries" { try std.testing.expectEqual(TestEnum.A, map.get("theNeedle").?); } -test "ComptimeStringMap redundant insensitive" { +test "redundant insensitive" { const map = ComptimeStringMapWithEql(TestEnum, .{ .{ "redundant", .D }, .{ "theNeedle", .A }, @@ -300,7 +300,7 @@ test "ComptimeStringMap redundant insensitive" { try std.testing.expectEqual(TestEnum.A, map.get("theNeedle").?); } -test "ComptimeStringMap comptime-only value" { +test "comptime-only value" { const map = std.ComptimeStringMap(type, .{ .{ "a", struct { pub const foo = 1; |
