diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-09-09 22:54:50 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-09-09 22:54:50 -0400 |
| commit | 9dfbdeace6fd6fbeaea38bd48757f0ca0aee09a9 (patch) | |
| tree | 9c4790a26c3e9a81223a8b11ada820fc9db91710 /test | |
| parent | 4c78142af1259adc79ad3e803a58f1d48d8e633d (diff) | |
| download | zig-9dfbdeace6fd6fbeaea38bd48757f0ca0aee09a9.tar.gz zig-9dfbdeace6fd6fbeaea38bd48757f0ca0aee09a9.zip | |
add import test
Diffstat (limited to 'test')
| -rw-r--r-- | test/cases/import.zig | 4 |
1 files changed, 4 insertions, 0 deletions
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")); +} |
