summaryrefslogtreecommitdiff
path: root/test/data/lex
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-05-01 20:40:34 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-05-01 20:40:34 +0000
commita7c8ab91210e368b8b2f23e1d79d42ad1b364560 (patch)
treecd4732b2b347a8f322e89b8033fba1560d8180fe /test/data/lex
parent338a7fea57fbe7114870c0c48805652df716a0b4 (diff)
downloadlibcss-a7c8ab91210e368b8b2f23e1d79d42ad1b364560.tar.gz
libcss-a7c8ab91210e368b8b2f23e1d79d42ad1b364560.tar.bz2
Testdriver for automated lexer tests. This needs a little more work to verify that the data contained within emitted tokens is as expected.
Very trivial testdata to exercise this. svn path=/trunk/libcss/; revision=4115
Diffstat (limited to 'test/data/lex')
-rw-r--r--test/data/lex/INDEX5
-rw-r--r--test/data/lex/tests1.dat8
2 files changed, 13 insertions, 0 deletions
diff --git a/test/data/lex/INDEX b/test/data/lex/INDEX
new file mode 100644
index 0000000..f6008ae
--- /dev/null
+++ b/test/data/lex/INDEX
@@ -0,0 +1,5 @@
+# Index file for automated lexer tests
+#
+# Test Description
+
+tests1.dat Basic tests
diff --git a/test/data/lex/tests1.dat b/test/data/lex/tests1.dat
new file mode 100644
index 0000000..3b6b149
--- /dev/null
+++ b/test/data/lex/tests1.dat
@@ -0,0 +1,8 @@
+#data
+body
+#expected
+IDENT:body
+S
+EOF
+#reset
+