prefices and embedded NULs in prefices.
+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.
(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)))
+