X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fstrings.lisp;h=f3ff08f0345dca0fba2783df0959ac314d3258d0;hb=37b1b658da3d73aa304df83cc3e8bf8aa6548a25;hp=4c5fe154cb4c917baf564579bd33ecf69b82a48e;hpb=26af6f56fc615a008c3f433265ccecbfce815a61;p=jscl.git diff --git a/tests/strings.lisp b/tests/strings.lisp index 4c5fe15..f3ff08f 100644 --- a/tests/strings.lisp +++ b/tests/strings.lisp @@ -16,3 +16,14 @@ (test (string= "foo" "foo")) (test (not (string= "Foo" "foo"))) (test (not (string= "foo" "foox"))) + +;;; 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 +;;; in the host's environment. It should, but we have to think how to +;;; avoid conflicts (package renaming??) + +;; (let ((str "hello")) +;; (setf (char str 0) #\X) +;; (setf (char str 4) #\X) +;; (test (string= str "XellX")))