X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fstrings.lisp;h=92022e9d3dd2bde8e0076e09224a521764b54a78;hb=e2040ea9a5d5794b68a34277d459d52b475d6eff;hp=22713a223d0059370a7c2ffada3b1d1909798e0c;hpb=e672c12735de63ac9ad04624ddf68ea06a8fe3c3;p=jscl.git diff --git a/tests/strings.lisp b/tests/strings.lisp index 22713a2..92022e9 100644 --- a/tests/strings.lisp +++ b/tests/strings.lisp @@ -130,12 +130,6 @@ (test (string= (string-capitalize "pipe 13a, foo16c") "Pipe 13a, Foo16c")) (test (string= (string-capitalize "a fool" :start 2 :end nil) "a Fool")) -;; JSCL HACK: a simple COPY-SEQ for testing string functions, since we don't have a real one yet -- remove me -(defun copy-seq (string) - (let ((copy (make-string (length string)))) - (dotimes (i (length string) copy) - (aset copy i (char string i))))) - (test (let ((str (copy-seq "0123ABCD890a"))) (and (string= (nstring-downcase str :start 5 :end 7) "0123AbcD890a") (string= str "0123AbcD890a"))))