* tests/symbols.test ("gensym"): New tests for long gensym
authorMartin Grabmüller <mgrabmue@cs.tu-berlin.de>
Mon, 28 May 2001 18:40:31 +0000 (18:40 +0000)
committerMartin Grabmüller <mgrabmue@cs.tu-berlin.de>
Mon, 28 May 2001 18:40:31 +0000 (18:40 +0000)
prefices and embedded NULs in prefices.

test-suite/ChangeLog
test-suite/tests/symbols.test

index a1afa6d..a31a0df 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-28  Martin Grabmueller  <mgrabmue@cs.tu-berlin.de>
+
+       * tests/symbols.test ("gensym"): New tests for long gensym
+       prefices and embedded NULs in prefices.
+
 2001-05-21  Marius Vollmer  <mvo@zagadka.ping.de>
 
        * test/goops.test, test/syncase.test: New, minimal tests.
index 3524b49..7831a95 100644 (file)
 
   (pass-if-exception "does not accept a symbol prefix"
     exception:wrong-type-arg
-    (gensym 'foo)))
+    (gensym 'foo))
+
+  (pass-if "accepts long prefices"
+    (symbol? (gensym (make-string 4000 #\!))))
+
+  (pass-if "accepts embedded NULs"
+    (> (string-length (symbol->string (gensym "foo\0bar\0braz\0foo\0bar\0braz\0foo\0bar\0braz\0foo\0bar\0braz\0foo\0bar\0braz\0foo\0bar\0braz\0"))) 6)))
+