zig/test/cases/pub_enum/index.zig
2017-05-23 21:38:31 -04:00

14 lines
291 B
Zig

const other = @import("other.zig");
const assert = @import("std").debug.assert;
test "pub enum" {
pubEnumTest(other.APubEnum.Two);
}
fn pubEnumTest(foo: other.APubEnum) {
assert(foo == other.APubEnum.Two);
}
test "cast with imported symbol" {
assert(other.size_t(42) == 42);
}