Read/write invariance is broken for strings with `|'.
authorTaylor R Campbell <campbell@mumble.net>
Mon, 26 Nov 2018 02:52:31 +0000 (02:52 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Mon, 26 Nov 2018 02:58:29 +0000 (02:58 +0000)
tests/runtime/test-readwrite.scm

index 792f74a62f0043bf8522d69da3ecd283ca135445..5f60245a26c5b108e043105597b8e3e4d4c25118 100644 (file)
@@ -59,6 +59,9 @@ USA.
 (define assert-symbol
   (predicate-assertion symbol? "symbol"))
 
+(define assert-string
+  (predicate-assertion string? "string"))
+
 (define assert-exact-integer
   (predicate-assertion exact-integer? "exact integer"))
 
@@ -112,7 +115,10 @@ USA.
     ("-inf.0+inf.0i" ,assert-complex-nonreal)
     ("-inf.0-inf.0i" ,assert-complex-nonreal)
     ("+inf.0+nan.0i" ,assert-complex-nonreal)
-    ("+nan.0+inf.0i" ,assert-complex-nonreal))
+    ("+nan.0+inf.0i" ,assert-complex-nonreal)
+    ("\"|\"" ,assert-string xfail)
+    ("\"\\\"\"" ,assert-string)
+    ("\"\\\\\"" ,assert-string))
   (lambda (string #!optional assertion xfail?)
     (with-expected-failure xfail?
       (lambda ()