zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 9dfbdeace6fd6fbeaea38bd48757f0ca0aee09a9 (tree)
parent 4c78142af1259adc79ad3e803a58f1d48d8e633d
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Sat,  9 Sep 2017 22:54:50 -0400

add import test

Diffstat:
Mtest/cases/import.zig | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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")); +}