X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests.lisp;h=0fbbff6b9b91c5a072c2c357d2c13b85b09cfcb1;hb=6729a4cf6ca2361b36a8ada705e7325b62c2fe54;hp=b419fed4a70619f043d2d58104f295167d322940;hpb=72b483ebb9fd0f02acb1b20ef14ee8bac845eca8;p=kmrcl.git diff --git a/tests.lisp b/tests.lisp index b419fed..0fbbff6 100644 --- a/tests.lisp +++ b/tests.lisp @@ -7,7 +7,7 @@ ;;;; Author: Kevin M. Rosenberg ;;;; Date Started: Apr 2003 ;;;; -;;;; $Id: tests.lisp,v 1.18 2003/06/12 11:10:38 kevin Exp $ +;;;; $Id: tests.lisp,v 1.19 2003/06/15 07:48:30 kevin Exp $ ;;;; ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg ;;;; @@ -55,6 +55,15 @@ (deftest str.24 (delimited-string-to-list "ab|" #\|) ("ab" "")) (deftest str.25 (delimited-string-to-list "ab|" #\| t) ("ab")) +(deftest sdstl.1 (string-delimited-string-to-list "ab|cd|ef" "|a") + ("ab|cd|ef")) +(deftest sdstl.2 (string-delimited-string-to-list "ab|cd|ef" "|") + ("ab" "cd" "ef")) +(deftest sdstl.3 (string-delimited-string-to-list "ab|cd|ef" "cd") + ("ab|" "|ef")) +(deftest sdstl.4 (string-delimited-string-to-list "ab|cd|ef" "ab") + ("" "|cd|ef")) + (deftest apsl.1 (append-sublists '((a b) (c d))) (a b c d)) (deftest apsl.2 (append-sublists nil) nil) (deftest apsl.3 (append-sublists '((a b))) (a b))