Added basic test system for VVhitespace interpreter.
[vvhitespace] / tests / 1001_stack_operations.pvvs
diff --git a/tests/1001_stack_operations.pvvs b/tests/1001_stack_operations.pvvs
new file mode 100644 (file)
index 0000000..d8333e4
--- /dev/null
@@ -0,0 +1,10 @@
+# This test verifies operations under the Stack IMP ([Space]).
+
+SSSTSSSSSTN     | ST: Push +65 (ASCII A)
+SSSTSSSSTSN     | ST: Push +66 (ASCII B)
+SNS             | ST: Duplicate TOS
+TNSS            | IO: Output character
+SNT             | ST: Swap TOS and NOS
+SNN             | ST: Discard TOS
+TNSS            | IO: Output character
+NNN             | FC: Terminate program