summaryrefslogtreecommitdiff
path: root/lib/std/test/fmt.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-29 15:39:55 -0800
committerOri Bernstein <ori@eigenstate.org>2016-02-01 11:31:18 -0800
commit74d50fbf7247fb39c27c673f789c781174d0d653 (patch)
tree31e4c4a7124d225e5790d8e1fdd5126933c36f9f /lib/std/test/fmt.myr
parentd18c7f36b75feda3a11e54b00be8b131ea5caea2 (diff)
downloadmc-74d50fbf7247fb39c27c673f789c781174d0d653.tar.gz
Add test for escaped strings.
Diffstat (limited to 'lib/std/test/fmt.myr')
-rw-r--r--lib/std/test/fmt.myr1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/test/fmt.myr b/lib/std/test/fmt.myr
index 0352b00..e35f142 100644
--- a/lib/std/test/fmt.myr
+++ b/lib/std/test/fmt.myr
@@ -51,6 +51,7 @@ const builtins = {
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")