zig/test/cases/pub_enum/index.zig
Andrew Kelley af536ac343 introduce new test syntax
* remove setFnTest builtin
 * add test "name" { ... } syntax
 * remove --check-unused argument. functions are always lazy now.
2017-03-16 16:02:35 -04:00

14 lines
302 B
Zig

const other = @import("cases/pub_enum/other.zig");
const assert = @import("std").debug.assert;
test "pubEnum" {
pubEnumTest(other.APubEnum.Two);
}
fn pubEnumTest(foo: other.APubEnum) {
assert(foo == other.APubEnum.Two);
}
test "castWithImportedSymbol" {
assert(other.size_t(42) == 42);
}