add import test

This commit is contained in:
Andrew Kelley committed 2017-09-09 22:54:50 -04:00
1 parent 4c78142af1
commit 9dfbdeace6
1 file changed
+4
+4
View File
@@ -4,3 +4,7 @@ const a_namespace = @import("import/a_namespace.zig");
test "call fn via namespace lookup" {
assert(a_namespace.foo() == 1234);
}
test "importing the same thing gives the same import" {
assert(@import("std") == @import("std"));
}