summaryrefslogtreecommitdiff
path: root/test/data/lex
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-05-26 01:05:46 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-05-26 01:05:46 +0000
commit1d0f11e0afd72c458d035e737edf00fe8639e5b1 (patch)
treec33399858abb64f9281def986424824ce89cebfc /test/data/lex
parenteb6a36696e4eedd330ba966ae56329d29bc7ebf0 (diff)
downloadlibcss-1d0f11e0afd72c458d035e737edf00fe8639e5b1.tar.gz
libcss-1d0f11e0afd72c458d035e737edf00fe8639e5b1.tar.bz2
Fix tests for unicode escape sequences to actually have the correct expected values.
Fix expected value for a CHAR containing solely a \. Add new tests for invalid unicode escape sequences (out-of-range, lonely surrogates, etc). Add test to ensure that \000D gets converted to \000A. Fix unicode escape sequence handling to pass the above tests. Also ensure it correctly handles the whitespace character after the escape sequence. svn path=/trunk/libcss/; revision=7549
Diffstat (limited to 'test/data/lex')
-rw-r--r--test/data/lex/tests1.dat45
1 files changed, 40 insertions, 5 deletions
diff --git a/test/data/lex/tests1.dat b/test/data/lex/tests1.dat
index 5a9c173..5e575a9 100644
--- a/test/data/lex/tests1.dat
+++ b/test/data/lex/tests1.dat
@@ -596,21 +596,56 @@ EOF
#data
\123\456
#expected
-IDENT:
+IDENT:ģі
EOF
#reset
#data
\789\abc
#expected
-IDENT:
+IDENT:މ઼
EOF
#reset
#data
-\def
+\000d
#expected
-IDENT:
+IDENT:\n
+EOF
+#reset
+
+#data
+\d900
+#expected
+IDENT:�
+EOF
+#reset
+
+#data
+\dd00
+#expected
+IDENT:�
+EOF
+#reset
+
+#data
+\fffe
+#expected
+IDENT:�
+EOF
+#reset
+#
+#data
+\1ffff
+#expected
+IDENT:�
+EOF
+#reset
+
+#data
+\110000
+#expected
+IDENT:�
EOF
#reset
@@ -619,7 +654,7 @@ tes\
t
#expected
IDENT:tes
-CHAR:\
+CHAR:\\
S
IDENT:t
S