From bc25012753704943808bb8f71d75f27f68c13da9 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Thu, 9 Apr 2015 14:56:28 +0200 Subject: fixed a bug in the DocumentHandler which lead to problems in case of empty explicit fields. --- test/formats/osxml/OsxmlParserTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/formats/osxml/OsxmlParserTest.cpp b/test/formats/osxml/OsxmlParserTest.cpp index 7c7f2a8..a4ff3c2 100644 --- a/test/formats/osxml/OsxmlParserTest.cpp +++ b/test/formats/osxml/OsxmlParserTest.cpp @@ -396,9 +396,8 @@ TEST(OsxmlParser, emptyNamedField){ Rooted doc = book_document_node.cast(); ASSERT_TRUE(doc->validate(logger)); checkStructuredEntity(doc->getRoot(), doc, doc, "a"); - ASSERT_EQ(2U, doc->getRoot()->getDescriptor()->getFieldDescriptors().size()); + ASSERT_EQ(1U, doc->getRoot()->getDescriptor()->getFieldDescriptors().size()); ASSERT_TRUE(doc->getRoot()->getField(0).empty()); - ASSERT_TRUE(doc->getRoot()->getField(1).empty()); } } -- cgit v1.2.3