# file : cxx/parser/validation/choice/testscript # license : GNU GPL v2 + exceptions; see accompanying LICENSE file test.arguments += test.xml : valid : { cat <=test.xml; a b c d any a c d d a EOI $* >>EOO { a = a b = b } { c = c d = d any: other#any { chars = any } a = a } { c = c d = d d = d a = a } EOO } : absent1 : { cat <=test.xml; EOI $* >>EOO { :8:12 error: expected element 'a' } EOO } : absent2 : { cat <=test.xml; c d any a b EOI $* >>EOO { c = c d = d any: other#any { chars = any } a = a :14:8 error: unexpected element 'b' } EOO } : absent3 : { cat <=test.xml; c EOI $* >>EOO { c = c :9:12 error: expected element 'd' } EOO } : absent4 : { cat <=test.xml; x EOI $* >>EOO { :8:8 error: expected element 'a' instead of 'x' } EOO }