summaryrefslogtreecommitdiffstats
path: root/testdata
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-10-20 00:09:20 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2012-10-20 00:09:20 +0100
commitafec2544f1793d11c47356c32ef74ce8c4035263 (patch)
tree91bbf823e4ae9d1ea212cd2b3c27cab26eef0b47 /testdata
parent6828ec9852583e1b1a84878235e9d61ab99930eb (diff)
A string interpolation syntax that I don't hate. Also tests.
You can interpolate values into strings using \(this syntax), e.g. "best \("str" + "ing") ever"
Diffstat (limited to 'testdata')
-rw-r--r--testdata14
1 files changed, 13 insertions, 1 deletions
diff --git a/testdata b/testdata
index c37dee93..ea0b1cc6 100644
--- a/testdata
+++ b/testdata
@@ -31,7 +31,19 @@ null
null
[]
-# FIXME: string literals
+# We test escapes by matching them against Unicode codepoints
+# FIXME: more tests needed for weird unicode stuff (e.g. utf16 pairs)
+"Aa\r\n\t\b\f\u03bc"
+null
+"Aa\u000d\u000a\u0009\u0008\u000c\u03bc"
+
+.
+"Aa\r\n\t\b\f\u03bc"
+"Aa\u000d\u000a\u0009\u0008\u000c\u03bc"
+
+"inter\("pol" + "ation")"
+null
+"interpolation"
#
# Dictionary construction syntax