diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-08 14:45:21 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-08 14:45:21 -0700 |
| commit | 5619ce2406a545e177882415195575463989066d (patch) | |
| tree | 5c0e786d19054a56ae42272713de321e25d2efc8 /test/behavior/pub_enum.zig | |
| parent | 5cd9afc6b6cf33f650e5afc6b726b91dfb97e697 (diff) | |
| parent | 67154d233ef68d9fd63e673e63e7d66f149060a5 (diff) | |
| download | zig-5619ce2406a545e177882415195575463989066d.tar.gz zig-5619ce2406a545e177882415195575463989066d.zip | |
Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen
Conflicts:
* doc/langref.html.in
* lib/std/enums.zig
* lib/std/fmt.zig
* lib/std/hash/auto_hash.zig
* lib/std/math.zig
* lib/std/mem.zig
* lib/std/meta.zig
* test/behavior/alignof.zig
* test/behavior/bitcast.zig
* test/behavior/bugs/1421.zig
* test/behavior/cast.zig
* test/behavior/ptrcast.zig
* test/behavior/type_info.zig
* test/behavior/vector.zig
Master branch added `try` to a bunch of testing function calls, and some
lines also had changed how to refer to the native architecture and other
`@import("builtin")` stuff.
Diffstat (limited to 'test/behavior/pub_enum.zig')
| -rw-r--r-- | test/behavior/pub_enum.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/behavior/pub_enum.zig b/test/behavior/pub_enum.zig index 0613df94d9..d2e887b12e 100644 --- a/test/behavior/pub_enum.zig +++ b/test/behavior/pub_enum.zig @@ -2,12 +2,12 @@ const other = @import("pub_enum/other.zig"); const expect = @import("std").testing.expect; test "pub enum" { - pubEnumTest(other.APubEnum.Two); + try pubEnumTest(other.APubEnum.Two); } -fn pubEnumTest(foo: other.APubEnum) void { - expect(foo == other.APubEnum.Two); +fn pubEnumTest(foo: other.APubEnum) !void { + try expect(foo == other.APubEnum.Two); } test "cast with imported symbol" { - expect(@as(other.size_t, 42) == 42); + try expect(@as(other.size_t, 42) == 42); } |
