summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-11 00:28:57 -0800
committerKeith Packard <keithp@keithp.com>2017-02-20 11:16:50 -0800
commit00827a0ffe30938c26be216369fd2d8f8946d2c4 (patch)
treee609e6bc5968e91ef329beb34ba75ec92085fe11 /src/test
parent7f7e2431f5d1f7c1782ed6e774ccfc70fb4c87cf (diff)
altos/lisp: Share mark function for mark and move
These two operations both wanted to walk the referenced objects; sharing is caring. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/hanoi.lisp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/hanoi.lisp b/src/test/hanoi.lisp
index 93594c43..09a3611c 100644
--- a/src/test/hanoi.lisp
+++ b/src/test/hanoi.lisp
@@ -60,8 +60,8 @@
(defun display ()
(display-stacks 0 20 stacks)
- (move-to 1 1)
- (patom "\n")
+ (move-to 1 21)
+ (flush)
)
(defun length (l)
@@ -100,7 +100,7 @@
(setq stacks (replace stacks from from-stack))
(setq stacks (replace stacks to to-stack))
(display)
- (delay 500)
+ (delay 100)
)
)
@@ -125,3 +125,5 @@
(clear)
(_hanoi len 0 1 2)
)
+
+(hanoi)