mirror of
https://github.com/ziglang/zig.git
synced 2026-01-14 19:35:12 +00:00
* 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);
|
|
}
|