authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-04-21 20:46:05-04:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-04-21 23:08:48-04:00
log3f1c51ca906719fe2a064a73295ada230e34f1c2
tree729f9ef62d288efb160e4783a5b2dd1ef00dc698
parent08a8aa100d73bd87e6c39563d8f5c6186217afb3

std: remove names from incorrectly named tests

Tests that only reference decls for the purpose of analyzing more tests should be unnamed, otherwise trying to filter for just a referenced test can become impossible depending on the names.

8 files changed, 8 insertions(+), 8 deletions(-)

lib/std/Thread.zig+1-1
......@@ -1141,7 +1141,7 @@ test "setName, getName" {
11411141 thread.join();
11421142}
11431143
1144test "std.Thread" {
1144test {
11451145 // Doesn't use testing.refAllDecls() since that would pull in the compileError spinLoopHint.
11461146 _ = Futex;
11471147 _ = ResetEvent;
lib/std/atomic.zig+1-1
......@@ -7,7 +7,7 @@ pub const Stack = @import("atomic/stack.zig").Stack;
77pub const Queue = @import("atomic/queue.zig").Queue;
88pub const Atomic = @import("atomic/Atomic.zig").Atomic;
99
10test "std.atomic" {
10test {
1111 _ = @import("atomic/stack.zig");
1212 _ = @import("atomic/queue.zig");
1313 _ = @import("atomic/Atomic.zig");
lib/std/crypto/pcurves/p256.zig+1-1
......@@ -473,6 +473,6 @@ pub const AffineCoordinates = struct {
473473 }
474474};
475475
476test "p256" {
476test {
477477 _ = @import("tests/p256.zig");
478478}
lib/std/crypto/pcurves/p384.zig+1-1
......@@ -473,7 +473,7 @@ pub const AffineCoordinates = struct {
473473 }
474474};
475475
476test "p384" {
476test {
477477 if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest;
478478
479479 _ = @import("tests/p384.zig");
lib/std/crypto/pcurves/secp256k1.zig+1-1
......@@ -551,7 +551,7 @@ pub const AffineCoordinates = struct {
551551 }
552552};
553553
554test "secp256k1" {
554test {
555555 if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest;
556556
557557 _ = @import("tests/secp256k1.zig");
lib/std/hash.zig+1-1
......@@ -36,7 +36,7 @@ const xxhash = @import("hash/xxhash.zig");
3636pub const XxHash64 = xxhash.XxHash64;
3737pub const XxHash32 = xxhash.XxHash32;
3838
39test "hash" {
39test {
4040 _ = adler;
4141 _ = auto_hash;
4242 _ = crc;
lib/std/math/complex.zig+1-1
......@@ -189,7 +189,7 @@ test "complex.magnitude" {
189189 try testing.expect(math.approxEqAbs(f32, c, 5.83095, epsilon));
190190}
191191
192test "complex.cmath" {
192test {
193193 _ = @import("complex/abs.zig");
194194 _ = @import("complex/acosh.zig");
195195 _ = @import("complex/acos.zig");
lib/std/meta.zig+1-1
......@@ -10,7 +10,7 @@ pub const TrailerFlags = @import("meta/trailer_flags.zig").TrailerFlags;
1010
1111const Type = std.builtin.Type;
1212
13test "std.meta.TrailerFlags" {
13test {
1414 _ = TrailerFlags;
1515}
1616