summaryrefslogtreecommitdiff
path: root/Lisp/tests.lisp
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-01-26 10:51:29 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-01-26 10:51:29 +0100
commit771969e57e0cef63febbcd281ec2ed3e81685463 (patch)
treeb19eb1d22029dc418f26efa4a8c065ef3531fd02 /Lisp/tests.lisp
parentf97fad55542df30ece4e076ed31043124a0c67f8 (diff)
Support case-sensitive selector designators.
darcs-hash:da29e9f38c99f5a9e558edd20afff7400fced2e4
Diffstat (limited to 'Lisp/tests.lisp')
-rw-r--r--Lisp/tests.lisp13
1 files changed, 12 insertions, 1 deletions
diff --git a/Lisp/tests.lisp b/Lisp/tests.lisp
index beff6f9..f7a6dbb 100644
--- a/Lisp/tests.lisp
+++ b/Lisp/tests.lisp
@@ -46,6 +46,10 @@
(- (random (abs most-negative-double-float)))))
+#.(prog1 nil
+ (defparameter *readtable-backup* *readtable*)
+ (setq *readtable* (copy-readtable))
+ (setf (readtable-case *readtable*) :invert))
(deftestsuite base-functions (objective-cl)
()
(:equality-test #'objc-equal)
@@ -62,7 +66,14 @@
((ensure-same (find-selector "stringWithUTF8String:")
(find-selector '(:string-with-u-t-f-8-string))))
((ensure-same (find-selector "stringWithCString:encoding:")
- (find-selector '(:string-with-c-string :encoding))))))
+ (find-selector '(:string-with-c-string :encoding))))
+ ;; Case-sensitivity.
+ ((ensure-same (find-selector "stringWithCString:encoding:")
+ (find-selector '(:stringWithCString :encoding))))
+ ((ensure-same (find-selector "stringWithUTF8String:")
+ (find-selector :stringWithUTF8String)))))
+#.(prog1 nil
+ (setq *readtable* *readtable-backup*))
(deftestsuite primitive-method-invocation (objective-cl)