aboutsummaryrefslogtreecommitdiff
path: root/tests/wordsplit.at
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wordsplit.at')
-rw-r--r--tests/wordsplit.at19
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/wordsplit.at b/tests/wordsplit.at
index eea5c0a..c466a07 100644
--- a/tests/wordsplit.at
+++ b/tests/wordsplit.at
@@ -362,8 +362,10 @@ TESTWSP([suppress ws trimming within quotes],
4: "formatfield=In message %{text}, "
])
+# FIXME: numbering
TESTWSP([unescape],
-[wsp-unescape wsp33],[-default novar nocmd quote escape '\"'],
+[wsp-unescape wsp-unescape-simple wsp33],
+[-default novar nocmd quote escape ':+:\\""'],
[\Seen "quote \"" "bs \\"],
[NF: 3
0: \\Seen
@@ -371,6 +373,21 @@ TESTWSP([unescape],
2: "bs \\"
])
+TESTWSP([unescape: word/quote],
+[wsp-unescape wsp-unescape-word wsp33],
+[-default novar nocmd quote escape-word '\\""' escape-quote ':+0x:\\""'],
+[\Seen "quote \"" "bs \\" "3\x31 \101" 3\x31 \101],
+[NF: 6
+0: Seen
+1: "quote \""
+2: "bs \\"
+3: "31 A"
+4: 3x31
+5: 101
+])
+
+# END FIXME
+
TESTWSP([dquote],[wsp34],[-default novar nocmd dquote],
[a "quoted example" isn't it],
[NF: 4

Return to:

Send suggestions and report system problems to the System administrator.