X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=tests.lisp;h=c917615b40b0030ea1bfa72a42c9f95998136dee;hp=b419fed4a70619f043d2d58104f295167d322940;hb=5738e60dc3724dc7d022d0fd2d5f2dbe337be470;hpb=72b483ebb9fd0f02acb1b20ef14ee8bac845eca8 diff --git a/tests.lisp b/tests.lisp index b419fed..c917615 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.22 2003/07/16 16:01:37 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)) @@ -169,6 +178,12 @@ (deftest duqs.4 (decode-uri-query-string "abc+d") "abc d") (deftest duqs.5 (decode-uri-query-string "abc%20d") "abc d") +(deftest sse.1 (string-strip-ending "" nil) "") +(deftest sse.2 (string-strip-ending "abc" nil) "abc") +(deftest sse.3 (string-strip-ending "abc" "ab") "abc") +(deftest sse.4 (string-strip-ending "abc" '("ab")) "abc") +(deftest sse.5 (string-strip-ending "abcd" '("a" "cd")) "ab") + ;;; MOP Testing (eval-when (:compile-toplevel :load-toplevel :execute) @@ -177,13 +192,15 @@ #+kmrtest-mop (progn - (makunbound 'credit-rating) - (makunbound 'monitored-credit-rating) + (setf (find-class 'credit-rating) nil) + (setf (find-class 'monitored-credit-rating) nil) (defclass credit-rating () ((level :attributes (date-set time-set)) (id :attributes (person-setting))) - (:metaclass attributes-class)) + (:metaclass attributes-class) + #+lispworks (:optimize-slot-access nil) + ) (defclass monitored-credit-rating (credit-rating) ((level :attributes (last-checked interval date-set))