From 9dfbdeace6fd6fbeaea38bd48757f0ca0aee09a9 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 9 Sep 2017 22:54:50 -0400 Subject: [PATCH] add import test --- test/cases/import.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/cases/import.zig b/test/cases/import.zig index 1cff49fa4f..6d6d4b0208 100644 --- a/test/cases/import.zig +++ b/test/cases/import.zig @@ -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")); +}