summaryrefslogtreecommitdiffstats
path: root/tests/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-29 00:44:27 -0400
committerTavian Barnes <tavianator@gmail.com>2009-10-29 00:44:27 -0400
commita9e0784cbcd32dbd6184b280accaafd1c9575ba5 (patch)
tree986b047781acf522631d4f4bd8992d250ee01a1b /tests/dimension
parent605b34f1cdb8eb10c05198cfdf4e0a628592d9cf (diff)
downloaddimension-a9e0784cbcd32dbd6184b280accaafd1c9575ba5.tar.xz
Complete string parsing.
Diffstat (limited to 'tests/dimension')
-rw-r--r--tests/dimension/strings.pov2
-rwxr-xr-xtests/dimension/strings.sh3
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/dimension/strings.pov b/tests/dimension/strings.pov
index 307b774..663afdd 100644
--- a/tests/dimension/strings.pov
+++ b/tests/dimension/strings.pov
@@ -18,4 +18,4 @@
*************************************************************************/
// Test string handling, including escape sequences
-"This is a string with\n\"escape sequences\"\\"
+"This is a string with escape sequences: \a\b\f\n\r\t\u2123\v\\\'\"" \ No newline at end of file
diff --git a/tests/dimension/strings.sh b/tests/dimension/strings.sh
index 7557100..58e0751 100755
--- a/tests/dimension/strings.sh
+++ b/tests/dimension/strings.sh
@@ -20,8 +20,7 @@
#########################################################################
strings=$(${top_builddir}/dimension/dimension --tokenize ${srcdir}/strings.pov)
-strings_exp='((string "This is a string with
-"escape sequences"\"))'
+strings_exp=$(echo -e "((string \"This is a string with escape sequences: \a\b\f\n\r\t!#\v\\\'\"\"))")
if [ "$strings" != "$strings_exp" ]; then
echo "strings.pov tokenized as \"$strings\"" >&2