2017-03-26 03:39:28 -07:00
|
|
|
const other = @import("other.zig");
|
2017-01-05 00:57:48 -08:00
|
|
|
const assert = @import("std").debug.assert;
|
2016-12-25 23:42:31 -08:00
|
|
|
|
2017-03-16 13:02:35 -07:00
|
|
|
test "pubEnum" {
|
2016-12-25 23:42:31 -08:00
|
|
|
pubEnumTest(other.APubEnum.Two);
|
|
|
|
}
|
|
|
|
fn pubEnumTest(foo: other.APubEnum) {
|
|
|
|
assert(foo == other.APubEnum.Two);
|
|
|
|
}
|
|
|
|
|
2017-03-16 13:02:35 -07:00
|
|
|
test "castWithImportedSymbol" {
|
2016-12-25 23:42:31 -08:00
|
|
|
assert(other.size_t(42) == 42);
|
|
|
|
}
|