r5246: *** empty log message ***
[kmrcl.git] / tests.lisp
index b419fed4a70619f043d2d58104f295167d322940..2c944aa508f3048bebf26a7eca4cc03be3a52c75 100644 (file)
@@ -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.21 2003/07/01 22:16:40 kevin Exp $
 ;;;;
 ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
 ;;;;
 (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))
 
 #+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))