aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-10-09 20:27:42 +0200
committerBad Diode <bd@badd10de.dev>2021-10-09 20:27:42 +0200
commit2f3f7a4fbc6c77e3cf933ea01f584a28bc40936d (patch)
tree0ba2aa873a9013a5501d92fe4e093c188efd3b7c
parentab6b56dfe916c17f34e684e69483895402783ae5 (diff)
downloadbdl-2f3f7a4fbc6c77e3cf933ea01f584a28bc40936d.tar.gz
bdl-2f3f7a4fbc6c77e3cf933ea01f584a28bc40936d.zip
Add initial tests
-rwxr-xr-xMakefile3
-rw-r--r--tests/arithmetic_expected.txt9
2 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bfb7d4e..1f7c8dd 100755
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,9 @@ $(BUILD_DIR): tools
46run: $(BIN) 46run: $(BIN)
47 ./$(BIN) -i 47 ./$(BIN) -i
48 48
49tests: $(BIN)
50 ./$(BIN) examples/arithmetic.bdl | diff tests/arithmetic_expected.txt -
51
49# Remove build directory. 52# Remove build directory.
50clean: 53clean:
51 rm -rf $(BUILD_DIR) 54 rm -rf $(BUILD_DIR)
diff --git a/tests/arithmetic_expected.txt b/tests/arithmetic_expected.txt
new file mode 100644
index 0000000..590166a
--- /dev/null
+++ b/tests/arithmetic_expected.txt
@@ -0,0 +1,9 @@
1110
26
325
4-40
570
6-66
79
81
944000