diff options
| author | Loris Cro <kappaloris@gmail.com> | 2023-06-18 09:06:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-18 09:06:40 +0200 |
| commit | 216ef10dc471e4db60a30208be178d6c59efeaaf (patch) | |
| tree | 8c239dab283ae9cb3b7fe099bae240bcc53f894e /lib/std/rand/test.zig | |
| parent | 0fc1d396495c1ab482197021dedac8bea3f9401c (diff) | |
| parent | 729a051e9e38674233190aea23c0ac8c134f2d67 (diff) | |
| download | zig-216ef10dc471e4db60a30208be178d6c59efeaaf.tar.gz zig-216ef10dc471e4db60a30208be178d6c59efeaaf.zip | |
Merge branch 'master' into autodoc-searchkey
Diffstat (limited to 'lib/std/rand/test.zig')
| -rw-r--r-- | lib/std/rand/test.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/std/rand/test.zig b/lib/std/rand/test.zig index 1ad9adbeb8..d257425ad1 100644 --- a/lib/std/rand/test.zig +++ b/lib/std/rand/test.zig @@ -79,7 +79,7 @@ const Dilbert = struct { test "Random int" { try testRandomInt(); - comptime try testRandomInt(); + try comptime testRandomInt(); } fn testRandomInt() !void { var rng = SequentialPrng.init(); @@ -126,7 +126,7 @@ fn testRandomInt() !void { test "Random boolean" { try testRandomBoolean(); - comptime try testRandomBoolean(); + try comptime testRandomBoolean(); } fn testRandomBoolean() !void { var rng = SequentialPrng.init(); @@ -140,7 +140,7 @@ fn testRandomBoolean() !void { test "Random enum" { try testRandomEnumValue(); - comptime try testRandomEnumValue(); + try comptime testRandomEnumValue(); } fn testRandomEnumValue() !void { const TestEnum = enum { @@ -159,7 +159,7 @@ fn testRandomEnumValue() !void { test "Random intLessThan" { @setEvalBranchQuota(10000); try testRandomIntLessThan(); - comptime try testRandomIntLessThan(); + try comptime testRandomIntLessThan(); } fn testRandomIntLessThan() !void { var rng = SequentialPrng.init(); @@ -201,7 +201,7 @@ fn testRandomIntLessThan() !void { test "Random intAtMost" { @setEvalBranchQuota(10000); try testRandomIntAtMost(); - comptime try testRandomIntAtMost(); + try comptime testRandomIntAtMost(); } fn testRandomIntAtMost() !void { var rng = SequentialPrng.init(); |
