2017-01-05 00:57:48 -08:00
|
|
|
const assert = @import("std").debug.assert;
|
2017-03-26 03:39:28 -07:00
|
|
|
const a_namespace = @import("import/a_namespace.zig");
|
2016-12-21 21:12:27 -08:00
|
|
|
|
2017-09-09 19:53:32 -07:00
|
|
|
test "call fn via namespace lookup" {
|
2016-12-21 21:12:27 -08:00
|
|
|
assert(a_namespace.foo() == 1234);
|
|
|
|
}
|
2017-09-09 19:54:50 -07:00
|
|
|
|
|
|
|
test "importing the same thing gives the same import" {
|
|
|
|
assert(@import("std") == @import("std"));
|
|
|
|
}
|