summaryrefslogtreecommitdiff
path: root/tests/005_more_imports.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-08-01 16:30:19 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-08-02 12:49:40 -0400
commit7fe656f4b9ab594035f7c0b6c0c68ca41871daca (patch)
tree3e9fc93de1babc3c60b06dac6ae9ce2a00a58638 /tests/005_more_imports.ts
parent421358e7a9612527fdd9ed9a9a59635c12cdaab5 (diff)
Add 005_more_imports.ts
And run check_output_test in order.
Diffstat (limited to 'tests/005_more_imports.ts')
-rw-r--r--tests/005_more_imports.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/005_more_imports.ts b/tests/005_more_imports.ts
new file mode 100644
index 000000000..52dd1df7b
--- /dev/null
+++ b/tests/005_more_imports.ts
@@ -0,0 +1,11 @@
+import { returnsHi, returnsFoo2, printHello3 } from "./subdir/mod1.ts";
+
+printHello3();
+
+if (returnsHi() !== "Hi") {
+ throw Error("Unexpected");
+}
+
+if (returnsFoo2() !== "Foo") {
+ throw Error("Unexpected");
+}