add smoketests for FIND and REPLACE
authorNikodemus Siivola <nikodemus@random-state.net>
Sun, 28 Apr 2013 13:53:11 +0000 (16:53 +0300)
committerDavid Vázquez <davazp@gmail.com>
Mon, 6 May 2013 12:57:18 +0000 (13:57 +0100)
tests/seq.lisp [new file with mode: 0644]

diff --git a/tests/seq.lisp b/tests/seq.lisp
new file mode 100644 (file)
index 0000000..326b4f7
--- /dev/null
@@ -0,0 +1,7 @@
+(test (find 1 #(2 1 3)))
+(test (not (find 1 #(2 2 2))))
+(test (not (find 1 (remove 1 #(1 2 3 1)))))
+
+(test (find 1 (list 2 1 3)))
+(test (not (find 1 (list 2 2 2))))
+(test (not (find 1 (remove 1 (list 1 2 3 1)))))