lib/lisp/tests/parser-tests.nydp in nydp-0.2.3 vs lib/lisp/tests/parser-tests.nydp in nydp-0.2.5
- old
+ new
@@ -34,14 +34,13 @@
("parses a mixed-syntax prefix symbol"
(parse "$this.that.zozo")
((dot-syntax (dollar-syntax || this) that zozo)))
-
- ("parses an expression"
+ ("parses a list of expressions"
(parse "(foo bar \"hello, String\") 1 2 (3 t nil) nil")
- ((foo bar "hello, String") 1 2 (3 t nil))))
+ ((foo bar "hello, String") 1 2 (3 t nil) nil)))
(examples-for parse-in-string
("parses a plain string"
(parse-in-string "hello, world, take me to your dealer")
"hello, world, take me to your dealer")
@@ -65,7 +64,7 @@
("really ignores standalone interpolation symbol"
(len (parse-in-string (joinstr "" (list "hello " '~ " world"))))
13)
("reports parse errors gracefully"
- (on-err "CAUGHT: ~err" (parse-in-string (joinstr "" "blah ~~(\"stri...")))
- "CAUGHT: parse error: \"unterminated string\" in\n blah ~~(\"stri..." ))
+ (on-err "CAUGHT: ~(joinstr "\n" errors)" (parse-in-string (joinstr "" "blah ~~(\"stri...")))
+ "CAUGHT: parse error: \"unterminated string\" in\n blah ~~(\"stri...\nunterminated string" ))