]> khamidou — GitHub mirrors - miniforth.git/commitdiff
added some new tests
authorkhamidou <khamidou@gmail.com>
Thu, 20 Jan 2011 12:20:10 +0000 (13:20 +0100)
committerkhamidou <khamidou@gmail.com>
Thu, 20 Jan 2011 12:20:10 +0000 (13:20 +0100)
tests/t5.as [new file with mode: 0644]
tests/t6.as [new file with mode: 0644]
tests/t7.as [new file with mode: 0644]

diff --git a/tests/t5.as b/tests/t5.as
new file mode 100644 (file)
index 0000000..eeda5f1
--- /dev/null
@@ -0,0 +1,7 @@
+;; comm.
+push 20
+jmp b
+dprint
+b:
+       inc
+       dprint
\ No newline at end of file
diff --git a/tests/t6.as b/tests/t6.as
new file mode 100644 (file)
index 0000000..b1c4752
--- /dev/null
@@ -0,0 +1,9 @@
+jmp B
+A: inc 
+   dprint
+   push 0
+   ret
+
+B:
+       push 20
+       call A
\ No newline at end of file
diff --git a/tests/t7.as b/tests/t7.as
new file mode 100644 (file)
index 0000000..a72be5a
--- /dev/null
@@ -0,0 +1,6 @@
+push 20
+A: inc
+   dprint
+   jmp B
+
+B: jmp A
\ No newline at end of file