X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fstrings.lisp;h=f68ee1c9258bbac73be74a2c6f8f9896b50e1cb8;hb=8f59cd56540bb3699c80c141f30968cb0126ce04;hp=f3ff08f0345dca0fba2783df0959ac314d3258d0;hpb=05ce00a3b5c92c8d0bf32d19201562a1ca122766;p=jscl.git diff --git a/tests/strings.lisp b/tests/strings.lisp index f3ff08f..f68ee1c 100644 --- a/tests/strings.lisp +++ b/tests/strings.lisp @@ -17,6 +17,13 @@ (test (not (string= "Foo" "foo"))) (test (not (string= "foo" "foox"))) +(test (= (string< "one" "two") 0)) +(test (= (string< "oob" "ooc") 2)) +(test (null (string< "" ""))) +(test (null (string< "a" ""))) +(test (= (string< "" "a") 0)) +(test (= (string< "aaa" "aaaaa") 3)) + ;;; BUG: The compiler will macroexpand the forms below (char str N) ;;; will expand to internal SBCL code instead of our (setf char). It ;;; is because macrodefinitions during bootstrapping are not included