From 16b3d1004ee520341839305826fe065eb5d8c818 Mon Sep 17 00:00:00 2001 From: Ryan Liptak Date: Sun, 25 Feb 2024 23:31:53 -0800 Subject: Remove redundant test name prefixes now that test names are fully qualified Follow up to #19079, which made test names fully qualified. This fixes tests that now-redundant information in their test names. For example here's a fully qualified test name before the changes in this commit: "priority_queue.test.std.PriorityQueue: shrinkAndFree" and the same test's name after the changes in this commit: "priority_queue.test.shrinkAndFree" --- lib/std/comptime_string_map.zig | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib/std/comptime_string_map.zig') 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; -- cgit v1.2.3