summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/EXPECTED.mt17
-rw-r--r--src/test/EXPECTED.ops1
-rw-r--r--src/test/cmd.hexp4
-rwxr-xr-xsrc/test/run.sh6
4 files changed, 28 insertions, 0 deletions
diff --git a/src/test/EXPECTED.mt b/src/test/EXPECTED.mt
new file mode 100644
index 0000000..57ac1b2
--- /dev/null
+++ b/src/test/EXPECTED.mt
@@ -0,0 +1,17 @@
1more strange asdf
2
3more strange asdf
4 Hello! this is appending 4 to string
5
6********
7********
8Error test: 0
9hello 4 once more
10********
111
12********
136
14[asdf]
15********
16Got [hello world!]
17Got []
diff --git a/src/test/EXPECTED.ops b/src/test/EXPECTED.ops
new file mode 100644
index 0000000..f6bb64a
--- /dev/null
+++ b/src/test/EXPECTED.ops
@@ -0,0 +1 @@
403.428793492735
diff --git a/src/test/cmd.hexp b/src/test/cmd.hexp
new file mode 100644
index 0000000..de16627
--- /dev/null
+++ b/src/test/cmd.hexp
@@ -0,0 +1,4 @@
11+2,
2a=6,
31+a,
4exp a
diff --git a/src/test/run.sh b/src/test/run.sh
new file mode 100755
index 0000000..01591bf
--- /dev/null
+++ b/src/test/run.sh
@@ -0,0 +1,6 @@
1#!/bin/sh
2bin=`which $0`; cd `dirname $bin`
3echo "mt:"
4../tmp/bin/mt/test | diff -a EXPECTED.mt -
5echo "ops:"
6../tmp/bin/ops/test cmd.hexp | diff -a EXPECTED.ops -