mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 08:02:32 +00:00
add import test
This commit is contained in:
parent
4c78142af1
commit
9dfbdeace6
@ -4,3 +4,7 @@ const a_namespace = @import("import/a_namespace.zig");
|
|||||||
test "call fn via namespace lookup" {
|
test "call fn via namespace lookup" {
|
||||||
assert(a_namespace.foo() == 1234);
|
assert(a_namespace.foo() == 1234);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test "importing the same thing gives the same import" {
|
||||||
|
assert(@import("std") == @import("std"));
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user