summaryrefslogtreecommitdiff
path: root/test/plugins
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-11 17:54:48 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-02-11 17:54:48 +0100
commit2f75ac166594b6bc2ea30901669304eca23174ec (patch)
tree0995fdfd968a6dfdae2ca93e83b76a2686a02abc /test/plugins
parent76df276a0c30013c8d7fa98bedc6b0fbadb56699 (diff)
changed semantics of default field, now referring to the only TREE field.
Diffstat (limited to 'test/plugins')
-rw-r--r--test/plugins/xml/XmlParserTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/plugins/xml/XmlParserTest.cpp b/test/plugins/xml/XmlParserTest.cpp
index ef95552..7d5c697 100644
--- a/test/plugins/xml/XmlParserTest.cpp
+++ b/test/plugins/xml/XmlParserTest.cpp
@@ -181,7 +181,7 @@ static void checkFieldDescriptor(
static void checkFieldDescriptor(
Handle<Descriptor> desc, Handle<Descriptor> parent,
NodeVector<StructuredClass> children,
- const std::string &name = DEFAULT_FIELD_NAME,
+ const std::string &name = "",
FieldDescriptor::FieldType type = FieldDescriptor::FieldType::TREE,
Handle<Type> primitiveType = nullptr, bool optional = false)
{
@@ -193,7 +193,7 @@ static void checkFieldDescriptor(
static void checkFieldDescriptor(
Handle<Descriptor> desc, NodeVector<StructuredClass> children,
- const std::string &name = DEFAULT_FIELD_NAME,
+ const std::string &name = "",
FieldDescriptor::FieldType type = FieldDescriptor::FieldType::TREE,
Handle<Type> primitiveType = nullptr, bool optional = false)
{
@@ -244,7 +244,7 @@ TEST(XmlParser, domainParsing)
checkFieldDescriptor(subsection, {paragraph});
checkFieldDescriptor(paragraph, {text});
checkFieldDescriptor(
- text, {}, DEFAULT_FIELD_NAME, FieldDescriptor::FieldType::PRIMITIVE,
+ text, {}, "", FieldDescriptor::FieldType::TREE,
env.project->getSystemTypesystem()->getStringType(), false);
// check parent handling using the headings domain.