diff options
| author | Nakidai <nakidai@disroot.org> | 2025-03-31 17:15:55 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2025-03-31 17:15:55 +0300 |
| commit | d0ea12857007f9d6d48df7e87b8dcdff4dd8a75e (patch) | |
| tree | db312156afea7476d887798d731b29e6729aaf4c /examples | |
| parent | 2abf5178e4957c18ee9f83490eff5e4135199ff1 (diff) | |
| download | 3cl-d0ea12857007f9d6d48df7e87b8dcdff4dd8a75e.tar.gz 3cl-d0ea12857007f9d6d48df7e87b8dcdff4dd8a75e.zip | |
Edit test structure
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/Makefile | 2 | ||||
| -rw-r--r-- | examples/in/fib | 1 | ||||
| -rw-r--r-- | examples/in/gcd | 1 | ||||
| -rw-r--r-- | examples/out/fib (renamed from examples/fib.ccl.test) | 0 | ||||
| -rw-r--r-- | examples/out/gcd (renamed from examples/gcd.ccl.test) | 0 |
5 files changed, 3 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile index c4901ab..faf2f75 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -6,4 +6,4 @@ all: ${TESTS} .PHONY: ${TESTS} ${TESTS}: @echo "Test: $@" - @test "`../3cl -d $@.ccl`" = "`cat $@.ccl.test`" + @test "`../3cl -d $@.ccl < in/$@`" = "`cat out/$@`" diff --git a/examples/in/fib b/examples/in/fib new file mode 100644 index 0000000..d698f74 --- /dev/null +++ b/examples/in/fib @@ -0,0 +1 @@ +lol this file doesnt have any read calls so i can write here anythin i want diff --git a/examples/in/gcd b/examples/in/gcd new file mode 100644 index 0000000..d698f74 --- /dev/null +++ b/examples/in/gcd @@ -0,0 +1 @@ +lol this file doesnt have any read calls so i can write here anythin i want diff --git a/examples/fib.ccl.test b/examples/out/fib index 933afe4..933afe4 100644 --- a/examples/fib.ccl.test +++ b/examples/out/fib diff --git a/examples/gcd.ccl.test b/examples/out/gcd index 441395f..441395f 100644 --- a/examples/gcd.ccl.test +++ b/examples/out/gcd |