ref: 74d50fbf7247fb39c27c673f789c781174d0d653
parent: d18c7f36b75feda3a11e54b00be8b131ea5caea2
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jan 29 10:39:55 EST 2016
Add test for escaped strings.
--- a/lib/std/test/fmt.myr
+++ b/lib/std/test/fmt.myr
@@ -51,6 +51,7 @@
check(" -1", "{w=10}", -1)
check("100000" , "{w=3}", 100000)
check("foobarbaz", "{}bar{}", "foo", "baz")
+ check("\\x0a\\x0d\\xff", "{e}", "\n\r\xff")
check("{}barbaz", "{{}}bar{}", "baz")
check("{barbaz}", "{{bar{}}}", "baz")
check("abcd", "{}", "abcd")