diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-07-25 23:33:15 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-07-25 23:33:15 -0700 |
| commit | c95091e5a50f0bfa120a83292ee546b8c3e11910 (patch) | |
| tree | d47186ce1cd669c08fdfa1ab74afa616a2b241e5 /lib/std | |
| parent | 09b0ad494bd9e3531ababb25e2531c18861b2148 (diff) | |
| download | zig-c95091e5a50f0bfa120a83292ee546b8c3e11910.tar.gz zig-c95091e5a50f0bfa120a83292ee546b8c3e11910.zip | |
run zig fmt on std.testing
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/testing.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig index 423f537f74..8f16b50cd2 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -175,7 +175,7 @@ test "expectEqual.union(enum)" { /// within the margin of the expected value, /// prints diagnostics to stderr to show exactly how they are not equal, then aborts. /// The types must be floating point -pub fn expectWithinMargin(expected: var, actual: @TypeOf(expected), margin: @TypeOf(expected)) void { +pub fn expectWithinMargin(expected: anytype, actual: @TypeOf(expected), margin: @TypeOf(expected)) void { std.debug.assert(margin >= 0.0); switch (@typeInfo(@TypeOf(actual))) { @@ -201,7 +201,7 @@ test "expectWithinMargin.f32" { /// within the epsilon of the expected value, /// prints diagnostics to stderr to show exactly how they are not equal, then aborts. /// The types must be floating point -pub fn expectWithinEpsilon(expected: var, actual: @TypeOf(expected), epsilon: @TypeOf(expected)) void { +pub fn expectWithinEpsilon(expected: anytype, actual: @TypeOf(expected), epsilon: @TypeOf(expected)) void { std.debug.assert(epsilon >= 0.0 and epsilon <= 1.0); const margin = epsilon * expected; |
