diff options
| author | Veikka Tuominen <git@vexu.eu> | 2021-05-04 21:23:22 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2021-05-08 15:15:30 +0300 |
| commit | 0a38f61d58018ce856ce058efb655ff0199228d2 (patch) | |
| tree | 8e56b966eb21616e4f5a3adef36f94b0233243bf /test/compile_errors.zig | |
| parent | fd77f2cfed81f3414c079909e079a812e23071c3 (diff) | |
| download | zig-0a38f61d58018ce856ce058efb655ff0199228d2.tar.gz zig-0a38f61d58018ce856ce058efb655ff0199228d2.zip | |
update usage of std.testing in behavior and standalone tests
Diffstat (limited to 'test/compile_errors.zig')
| -rw-r--r-- | test/compile_errors.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig index 5b36027248..a1a9fbf460 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -230,7 +230,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { cases.add("array in c exported function", \\export fn zig_array(x: [10]u8) void { - \\ expect(std.mem.eql(u8, &x, "1234567890")); + \\try expect(std.mem.eql(u8, &x, "1234567890")); \\} \\ \\export fn zig_return_array() [10]u8 { |
