summaryrefslogtreecommitdiff
path: root/test/bits.lorth
diff options
context:
space:
mode:
authormRnea <[email protected]>2024-08-03 12:03:58 +0300
committermRnea <[email protected]>2024-08-03 12:03:58 +0300
commit38927a2169b9a99b0936122121ba849e109248df (patch)
treec6764b7875e1935be52feab378fe5d452a2344f5 /test/bits.lorth
parent8713ffbd95483fc8b6778fb2d4d67659b6217c42 (diff)
added some basic tests
Diffstat (limited to 'test/bits.lorth')
-rw-r--r--test/bits.lorth15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/bits.lorth b/test/bits.lorth
new file mode 100644
index 0000000..77be5b0
--- /dev/null
+++ b/test/bits.lorth
@@ -0,0 +1,15 @@
+;;; test
+;;; (format nil "~{~a~%~}" (append '(0 1 2)
+;;; '(7 3 5)
+;;; '(4 32 12)))
+1 2 & dump
+1 1 & dump
+3 2 & dump
+
+1 2 4 | | dump
+3 1 | dump
+5 5 | dump
+
+32 3 >> dump
+1 5 << dump
+3 2 << dump \ No newline at end of file