Convert test to not to use `equal'
authorDavid Vázquez <davazp@gmail.com>
Wed, 8 May 2013 08:42:12 +0000 (09:42 +0100)
committerDavid Vázquez <davazp@gmail.com>
Wed, 8 May 2013 08:42:12 +0000 (09:42 +0100)
tests/read.lisp

index 4f6ea83..a7cfa94 100644 (file)
 (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)