From e4620048814830d860f57dd7c82f96f886b51851 Mon Sep 17 00:00:00 2001 From: Tissevert Date: Fri, 10 Jan 2020 18:44:24 +0100 Subject: [PATCH] Add static test directories --- tests/cycle/A.js | 5 +++++ tests/cycle/B.js | 5 +++++ tests/cycle/C.js | 5 +++++ tests/cycle/Main.js | 3 +++ tests/diamond/A.js | 5 +++++ tests/diamond/B.js | 5 +++++ tests/diamond/C.js | 4 ++++ tests/diamond/Main.js | 4 ++++ tests/loop/A.js | 5 +++++ tests/loop/Main.js | 3 +++ tests/simple/A.js | 3 +++ tests/simple/B.js | 3 +++ tests/simple/Main.js | 4 ++++ tests/triangle/Main.js | 4 ++++ tests/triangle/N.js | 5 +++++ tests/triangle/O.js | 3 +++ 16 files changed, 66 insertions(+) create mode 100644 tests/cycle/A.js create mode 100644 tests/cycle/B.js create mode 100644 tests/cycle/C.js create mode 100644 tests/cycle/Main.js create mode 100644 tests/diamond/A.js create mode 100644 tests/diamond/B.js create mode 100644 tests/diamond/C.js create mode 100644 tests/diamond/Main.js create mode 100644 tests/loop/A.js create mode 100644 tests/loop/Main.js create mode 100644 tests/simple/A.js create mode 100644 tests/simple/B.js create mode 100644 tests/simple/Main.js create mode 100644 tests/triangle/Main.js create mode 100644 tests/triangle/N.js create mode 100644 tests/triangle/O.js diff --git a/tests/cycle/A.js b/tests/cycle/A.js new file mode 100644 index 0000000..88637a7 --- /dev/null +++ b/tests/cycle/A.js @@ -0,0 +1,5 @@ +import B; + +return { + s: 'a' + B.s +}; diff --git a/tests/cycle/B.js b/tests/cycle/B.js new file mode 100644 index 0000000..0a5d695 --- /dev/null +++ b/tests/cycle/B.js @@ -0,0 +1,5 @@ +import C; + +return { + s: 'b' + C.s +}; diff --git a/tests/cycle/C.js b/tests/cycle/C.js new file mode 100644 index 0000000..5de6f46 --- /dev/null +++ b/tests/cycle/C.js @@ -0,0 +1,5 @@ +import A; + +return { + s: 'c' + A.s +} diff --git a/tests/cycle/Main.js b/tests/cycle/Main.js new file mode 100644 index 0000000..eb47b96 --- /dev/null +++ b/tests/cycle/Main.js @@ -0,0 +1,3 @@ +import A; + +console.log(A.s); diff --git a/tests/diamond/A.js b/tests/diamond/A.js new file mode 100644 index 0000000..94c0a4b --- /dev/null +++ b/tests/diamond/A.js @@ -0,0 +1,5 @@ +import C; + +return { + s: "Hello" + C.punctuation +}; diff --git a/tests/diamond/B.js b/tests/diamond/B.js new file mode 100644 index 0000000..8a631fa --- /dev/null +++ b/tests/diamond/B.js @@ -0,0 +1,5 @@ +import C; + +return { + s: "world" + C.exclamation +}; diff --git a/tests/diamond/C.js b/tests/diamond/C.js new file mode 100644 index 0000000..6dcd6b3 --- /dev/null +++ b/tests/diamond/C.js @@ -0,0 +1,4 @@ +return { + punctuation: ", ", + exclamation: " !" +}; diff --git a/tests/diamond/Main.js b/tests/diamond/Main.js new file mode 100644 index 0000000..736559c --- /dev/null +++ b/tests/diamond/Main.js @@ -0,0 +1,4 @@ +import A; +import B; + +console.log(A.s + B.s); diff --git a/tests/loop/A.js b/tests/loop/A.js new file mode 100644 index 0000000..7744623 --- /dev/null +++ b/tests/loop/A.js @@ -0,0 +1,5 @@ +import A; + +return { + s: 'a' + A.s +}; diff --git a/tests/loop/Main.js b/tests/loop/Main.js new file mode 100644 index 0000000..eb47b96 --- /dev/null +++ b/tests/loop/Main.js @@ -0,0 +1,3 @@ +import A; + +console.log(A.s); diff --git a/tests/simple/A.js b/tests/simple/A.js new file mode 100644 index 0000000..7da4168 --- /dev/null +++ b/tests/simple/A.js @@ -0,0 +1,3 @@ +return { + s: "Hello, " +}; diff --git a/tests/simple/B.js b/tests/simple/B.js new file mode 100644 index 0000000..4861c14 --- /dev/null +++ b/tests/simple/B.js @@ -0,0 +1,3 @@ +return { + s: "world !" +}; diff --git a/tests/simple/Main.js b/tests/simple/Main.js new file mode 100644 index 0000000..736559c --- /dev/null +++ b/tests/simple/Main.js @@ -0,0 +1,4 @@ +import A; +import B; + +console.log(A.s + B.s); diff --git a/tests/triangle/Main.js b/tests/triangle/Main.js new file mode 100644 index 0000000..d49b26b --- /dev/null +++ b/tests/triangle/Main.js @@ -0,0 +1,4 @@ +import N; +import O; + +console.log(N.s + O.s); diff --git a/tests/triangle/N.js b/tests/triangle/N.js new file mode 100644 index 0000000..f49ed87 --- /dev/null +++ b/tests/triangle/N.js @@ -0,0 +1,5 @@ +import O; + +return { + s: O.s +}; diff --git a/tests/triangle/O.js b/tests/triangle/O.js new file mode 100644 index 0000000..55ad103 --- /dev/null +++ b/tests/triangle/O.js @@ -0,0 +1,3 @@ +return { + s: 'o' +};