projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32518a8
)
Convert test to not to use `equal'
author
David Vázquez
<davazp@gmail.com>
Wed, 8 May 2013 08:42:12 +0000
(09:42 +0100)
committer
David Vázquez
<davazp@gmail.com>
Wed, 8 May 2013 08:42:12 +0000
(09:42 +0100)
tests/read.lisp
patch
|
blob
|
history
diff --git
a/tests/read.lisp
b/tests/read.lisp
index
4f6ea83
..
a7cfa94
100644
(file)
--- a/
tests/read.lisp
+++ b/
tests/read.lisp
@@
-14,7
+14,11
@@
(test (equal (read-from-string "(1 . 25)") '(1 . 25)))
(test (equal (read-from-string "(#1=99 2 3 #1#)") '(99 2 3 99)))
-(test (equal (read-from-string "#(#1=99 2 3 #1#)") '#(99 2 3 99)))
+(let ((v (read-from-string "#(#1=99 2 3 #1#)")))
+ (test (and (eql (aref v 0) 99)
+ (eql (aref v 1) 2)
+ (eql (aref v 2) 3)
+ (eql (aref v 3) 99))))
(test (let ((x (read-from-string "#1=(42 . #1#)")))
(and (eql (nth 99 x) 42)