X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=tests.lisp;h=0b0daa2d4a709c92720a79a9234a1b3d2b8f6019;hp=4cbc915f430f61d6e8f4079c79672b1e769b748e;hb=888acd079f2e1350ba5f034cb5c93382311e3ff3;hpb=03712fbb06acbb103602bae10f41aeae7fa05127 diff --git a/tests.lisp b/tests.lisp index 4cbc915..0b0daa2 100644 --- a/tests.lisp +++ b/tests.lisp @@ -202,6 +202,15 @@ (deftest :sse.4 (string-strip-ending "abc" '("ab")) "abc") (deftest :sse.5 (string-strip-ending "abcd" '("a" "cd")) "ab") +(deftest :rcs.1 (remove-char-string #\space "") "") +(deftest :rcs.2 (remove-char-string #\space "a") "a") +(deftest :rcs.3 (remove-char-string #\space "ab") "ab") +(deftest :rcs.4 (remove-char-string #\space "a b") "ab") +(deftest :rcs.5 (remove-char-string #\space " a b") "ab") +(deftest :rcs.6 (remove-char-string #\space "a b ") "ab") +(deftest :rcs.7 (remove-char-string #\space "a b c ") "abc") +(deftest :rcs.8 (remove-char-string #\space "a b c d") "abcd") + (defun test-color-conversion () (dotimes (ih 11)