mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 09:32:31 +00:00
4307436b99
And fix test cases to make them pass. This is in preparation for starting to pass behavior tests with self-hosted.
14 lines
312 B
Zig
14 lines
312 B
Zig
const other = @import("pub_enum/other.zig");
|
|
const expect = @import("std").testing.expect;
|
|
|
|
test "pub enum" {
|
|
pubEnumTest(other.APubEnum.Two);
|
|
}
|
|
fn pubEnumTest(foo: other.APubEnum) void {
|
|
expect(foo == other.APubEnum.Two);
|
|
}
|
|
|
|
test "cast with imported symbol" {
|
|
expect(@as(other.size_t, 42) == 42);
|
|
}
|