aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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