mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
af536ac343
* remove setFnTest builtin * add test "name" { ... } syntax * remove --check-unused argument. functions are always lazy now.
14 lines
302 B
Zig
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);
|
|
}
|