mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
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.
This commit is contained in:
parent
08a8aa100d
commit
3f1c51ca90
8 changed files with 8 additions and 8 deletions
|
|
@ -1141,7 +1141,7 @@ test "setName, getName" {
|
|||
thread.join();
|
||||
}
|
||||
|
||||
test "std.Thread" {
|
||||
test {
|
||||
// Doesn't use testing.refAllDecls() since that would pull in the compileError spinLoopHint.
|
||||
_ = Futex;
|
||||
_ = ResetEvent;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ pub const Stack = @import("atomic/stack.zig").Stack;
|
|||
pub const Queue = @import("atomic/queue.zig").Queue;
|
||||
pub const Atomic = @import("atomic/Atomic.zig").Atomic;
|
||||
|
||||
test "std.atomic" {
|
||||
test {
|
||||
_ = @import("atomic/stack.zig");
|
||||
_ = @import("atomic/queue.zig");
|
||||
_ = @import("atomic/Atomic.zig");
|
||||
|
|
|
|||
|
|
@ -473,6 +473,6 @@ pub const AffineCoordinates = struct {
|
|||
}
|
||||
};
|
||||
|
||||
test "p256" {
|
||||
test {
|
||||
_ = @import("tests/p256.zig");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -473,7 +473,7 @@ pub const AffineCoordinates = struct {
|
|||
}
|
||||
};
|
||||
|
||||
test "p384" {
|
||||
test {
|
||||
if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest;
|
||||
|
||||
_ = @import("tests/p384.zig");
|
||||
|
|
|
|||
|
|
@ -551,7 +551,7 @@ pub const AffineCoordinates = struct {
|
|||
}
|
||||
};
|
||||
|
||||
test "secp256k1" {
|
||||
test {
|
||||
if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest;
|
||||
|
||||
_ = @import("tests/secp256k1.zig");
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ const xxhash = @import("hash/xxhash.zig");
|
|||
pub const XxHash64 = xxhash.XxHash64;
|
||||
pub const XxHash32 = xxhash.XxHash32;
|
||||
|
||||
test "hash" {
|
||||
test {
|
||||
_ = adler;
|
||||
_ = auto_hash;
|
||||
_ = crc;
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ test "complex.magnitude" {
|
|||
try testing.expect(math.approxEqAbs(f32, c, 5.83095, epsilon));
|
||||
}
|
||||
|
||||
test "complex.cmath" {
|
||||
test {
|
||||
_ = @import("complex/abs.zig");
|
||||
_ = @import("complex/acosh.zig");
|
||||
_ = @import("complex/acos.zig");
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ pub const TrailerFlags = @import("meta/trailer_flags.zig").TrailerFlags;
|
|||
|
||||
const Type = std.builtin.Type;
|
||||
|
||||
test "std.meta.TrailerFlags" {
|
||||
test {
|
||||
_ = TrailerFlags;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue