diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-08 17:29:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-08 17:29:44 -0400 |
| commit | 67154d233ef68d9fd63e673e63e7d66f149060a5 (patch) | |
| tree | 341521e1c7cd9d3ea77726e27661b08d46b9a8dd /src/value.zig | |
| parent | fed1c9c3ece7b79ce7fccc6af510f1dab98401a9 (diff) | |
| parent | 7437c47d55da4c73aba26327d1a140aaf6591d4a (diff) | |
| download | zig-67154d233ef68d9fd63e673e63e7d66f149060a5.tar.gz zig-67154d233ef68d9fd63e673e63e7d66f149060a5.zip | |
Merge pull request #8686 from Vexu/try
Allow tests to fail
Diffstat (limited to 'src/value.zig')
| -rw-r--r-- | src/value.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/value.zig b/src/value.zig index 66a23692c1..6501e788c3 100644 --- a/src/value.zig +++ b/src/value.zig @@ -1456,19 +1456,19 @@ test "hash same value different representation" { .data = 0, }; const zero_2 = Value.initPayload(&payload_1.base); - std.testing.expectEqual(zero_1.hash(), zero_2.hash()); + try std.testing.expectEqual(zero_1.hash(), zero_2.hash()); var payload_2 = Value.Payload.I64{ .base = .{ .tag = .int_i64 }, .data = 0, }; const zero_3 = Value.initPayload(&payload_2.base); - std.testing.expectEqual(zero_2.hash(), zero_3.hash()); + try std.testing.expectEqual(zero_2.hash(), zero_3.hash()); var payload_3 = Value.Payload.BigInt{ .base = .{ .tag = .int_big_negative }, .data = &[_]std.math.big.Limb{0}, }; const zero_4 = Value.initPayload(&payload_3.base); - std.testing.expectEqual(zero_3.hash(), zero_4.hash()); + try std.testing.expectEqual(zero_3.hash(), zero_4.hash()); } |
