From 87f5e1f3d54f65c9a653c80217721453d3b8ba26 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 5 May 2008 01:57:32 +0000 Subject: A more complex test, taken from the CSS3 syntax module svn path=/trunk/libcss/; revision=4126 --- test/data/lex/INDEX | 1 + test/data/lex/tests2.dat | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 test/data/lex/tests2.dat diff --git a/test/data/lex/INDEX b/test/data/lex/INDEX index f6008ae..a3439f2 100644 --- a/test/data/lex/INDEX +++ b/test/data/lex/INDEX @@ -3,3 +3,4 @@ # Test Description tests1.dat Basic tests +tests2.dat More complicated tests diff --git a/test/data/lex/tests2.dat b/test/data/lex/tests2.dat new file mode 100644 index 0000000..5548327 --- /dev/null +++ b/test/data/lex/tests2.dat @@ -0,0 +1,29 @@ +#data +p[example="public class foo\ +{\ + private int x;\ +\ + foo(int x) {\ + this.x = x;\ + }\ +\ +}"] { color: red } +#expected +IDENT:p +CHAR:[ +IDENT:example +CHAR:= +STRING:public class foo\n{\n private int x;\n\n foo(int x) {\n this.x = x;\n }\n\n} +CHAR:] +S +CHAR:{ +S +IDENT:color +CHAR:: +S +IDENT:red +S +CHAR:} +S +EOF +#reset -- cgit v1.2.3