From a9e0784cbcd32dbd6184b280accaafd1c9575ba5 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 29 Oct 2009 00:44:27 -0400 Subject: Complete string parsing. --- tests/dimension/strings.pov | 2 +- tests/dimension/strings.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3