diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-10-20 00:09:20 +0100 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-10-20 00:09:20 +0100 |
commit | afec2544f1793d11c47356c32ef74ce8c4035263 (patch) | |
tree | 91bbf823e4ae9d1ea212cd2b3c27cab26eef0b47 /testdata | |
parent | 6828ec9852583e1b1a84878235e9d61ab99930eb (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-- | testdata | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 |