Add test for string< and get it to fail
authorSamuel Chase <samebchase@gmail.com>
Sun, 12 May 2013 19:57:15 +0000 (01:27 +0530)
committerSamuel Chase <samebchase@gmail.com>
Sun, 12 May 2013 19:57:15 +0000 (01:27 +0530)
dummy string< created for test failure.

src/string.lisp

index 04aa7f1..92c78dc 100644 (file)
@@ -25,6 +25,9 @@
         (unless (char= (char s1 i) (char s2 i))
           (return-from string= nil))))))
 
         (unless (char= (char s1 i) (char s2 i))
           (return-from string= nil))))))
 
+(defun string< (s1 s2)
+  -1)
+
 (define-setf-expander char (string index)
   (let ((g!string (gensym))
         (g!index (gensym))
 (define-setf-expander char (string index)
   (let ((g!string (gensym))
         (g!index (gensym))