diff options
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/dc.tests | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/dc.tests b/testsuite/dc.tests index 1fc13c201..361bc8459 100755 --- a/testsuite/dc.tests +++ b/testsuite/dc.tests | |||
@@ -59,6 +59,26 @@ testing "dc: x should work with strings created from a" \ | |||
59 | "42\n" \ | 59 | "42\n" \ |
60 | "" "" | 60 | "" "" |
61 | 61 | ||
62 | testing "dc: p should print invalid escapes" \ | ||
63 | "dc -e '[\q] p'" \ | ||
64 | "\\q\n" \ | ||
65 | "" "" | ||
66 | |||
67 | testing "dc: p should print trailing backslashes" \ | ||
68 | "dc -e '[q\] p'" \ | ||
69 | "q\\\\\n" \ | ||
70 | "" "" | ||
71 | |||
72 | testing "dc: p should parse/print single backslashes" \ | ||
73 | "dc -e '[\] p'" \ | ||
74 | "\\\\\n" \ | ||
75 | "" "" | ||
76 | |||
77 | testing "dc: p should print single backslash strings" \ | ||
78 | "dc -e '92 a p'" \ | ||
79 | "\\\\\n" \ | ||
80 | "" "" | ||
81 | |||
62 | testing "dc read" \ | 82 | testing "dc read" \ |
63 | "dc -finput" \ | 83 | "dc -finput" \ |
64 | "2\n9\n1\n" \ | 84 | "2\n9\n1\n" \ |