Added basic tests for stack and arithmetic IMPs.
[vvhitespace] / tests / 1003_stack_swap.pvvs
diff --git a/tests/1003_stack_swap.pvvs b/tests/1003_stack_swap.pvvs
new file mode 100644 (file)
index 0000000..9e18a9f
--- /dev/null
@@ -0,0 +1,8 @@
+# This test verifies stack IMP swap.
+
+SSSTSSSSSTN     | ST: Push +65 (ASCII A)
+SSSTSSSSTSN     | ST: Push +66 (ASCII B)
+SNT             | ST: Swap TOS and NOS
+TNSS            | IO: Output character
+TNSS            | IO: Output character
+NNN             | FC: Terminate program