From 31dcdd0c68c6fa9d5ec69a1c025ead619e30e08e Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 29 May 2023 16:08:47 -0400 Subject: tests: add lxiny-examples tests --- tests/lxiny-examples/stack-manipulation.forth | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/lxiny-examples/stack-manipulation.forth (limited to 'tests/lxiny-examples/stack-manipulation.forth') diff --git a/tests/lxiny-examples/stack-manipulation.forth b/tests/lxiny-examples/stack-manipulation.forth new file mode 100644 index 0000000..1192bb9 --- /dev/null +++ b/tests/lxiny-examples/stack-manipulation.forth @@ -0,0 +1,12 @@ +INPUT +3 dup .s clearstack +2 5 swap .s clearstack +6 4 5 rot .s clearstack +4 0 drop .s clearstack +1 2 3 nip .s clearstack +OUTPUT +<2> 3 3 +<2> 5 2 +<3> 4 5 6 +<1> 4 +<2> 1 3 -- cgit v1.2.3