aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/wasm.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-08 17:29:44 -0400
committerGitHub <noreply@github.com>2021-05-08 17:29:44 -0400
commit67154d233ef68d9fd63e673e63e7d66f149060a5 (patch)
tree341521e1c7cd9d3ea77726e27661b08d46b9a8dd /src/codegen/wasm.zig
parentfed1c9c3ece7b79ce7fccc6af510f1dab98401a9 (diff)
parent7437c47d55da4c73aba26327d1a140aaf6591d4a (diff)
downloadzig-67154d233ef68d9fd63e673e63e7d66f149060a5.tar.gz
zig-67154d233ef68d9fd63e673e63e7d66f149060a5.zip
Merge pull request #8686 from Vexu/try
Allow tests to fail
Diffstat (limited to 'src/codegen/wasm.zig')
-rw-r--r--src/codegen/wasm.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/codegen/wasm.zig b/src/codegen/wasm.zig
index 400a5cd1a3..759afa1047 100644
--- a/src/codegen/wasm.zig
+++ b/src/codegen/wasm.zig
@@ -463,11 +463,11 @@ test "Wasm - buildOpcode" {
const i64_extend32_s = buildOpcode(.{ .op = .extend, .valtype1 = .i64, .width = 32, .signedness = .signed });
const f64_reinterpret_i64 = buildOpcode(.{ .op = .reinterpret, .valtype1 = .f64, .valtype2 = .i64 });
- testing.expectEqual(@as(wasm.Opcode, .i32_const), i32_const);
- testing.expectEqual(@as(wasm.Opcode, .end), end);
- testing.expectEqual(@as(wasm.Opcode, .local_get), local_get);
- testing.expectEqual(@as(wasm.Opcode, .i64_extend32_s), i64_extend32_s);
- testing.expectEqual(@as(wasm.Opcode, .f64_reinterpret_i64), f64_reinterpret_i64);
+ try testing.expectEqual(@as(wasm.Opcode, .i32_const), i32_const);
+ try testing.expectEqual(@as(wasm.Opcode, .end), end);
+ try testing.expectEqual(@as(wasm.Opcode, .local_get), local_get);
+ try testing.expectEqual(@as(wasm.Opcode, .i64_extend32_s), i64_extend32_s);
+ try testing.expectEqual(@as(wasm.Opcode, .f64_reinterpret_i64), f64_reinterpret_i64);
}
pub const Result = union(enum) {