From 2de08643afdb4771ef8d1f6dd836ded20db244cf Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Wed, 18 Feb 2015 11:32:23 +0100 Subject: Fix for issue #85 -- only allowing explicit fields if no structure elements or data have been given beforehand. Added unit tests. --- testdata/osmlparser/invalid_explicit_fields.osml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 testdata/osmlparser/invalid_explicit_fields.osml (limited to 'testdata/osmlparser/invalid_explicit_fields.osml') diff --git a/testdata/osmlparser/invalid_explicit_fields.osml b/testdata/osmlparser/invalid_explicit_fields.osml new file mode 100644 index 0000000..9986204 --- /dev/null +++ b/testdata/osmlparser/invalid_explicit_fields.osml @@ -0,0 +1,16 @@ +\document + +\domain#test + \struct#a[isRoot=true] + \primitive#b[type=string,isSubtree=true] + \primitive#c[type=string,isSubtree=true] + \primitive#d[type=string,isSubtree=false] + + +\a{! + \b{test} + test + \c{test} + test + test +} -- cgit v1.2.3