diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-23 15:47:59 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-01-23 15:47:59 +0100 |
commit | 18d3637ca02ab69f1ee744fa94c43c243de0f571 (patch) | |
tree | 42c859f014ab7dbb7d31a747e0ef3839c77c60fa /test/plugins/xml/XmlParserTest.cpp | |
parent | 85d72823ef18711fe7a29f5b23cc37b318766332 (diff) | |
parent | aa817d3bfd90aa39b6fd8a915bc78a8bb210cd3d (diff) |
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'test/plugins/xml/XmlParserTest.cpp')
-rw-r--r-- | test/plugins/xml/XmlParserTest.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/plugins/xml/XmlParserTest.cpp b/test/plugins/xml/XmlParserTest.cpp index f1956e0..52b64e5 100644 --- a/test/plugins/xml/XmlParserTest.cpp +++ b/test/plugins/xml/XmlParserTest.cpp @@ -20,14 +20,13 @@ #include <gtest/gtest.h> +#include <core/common/CharReader.hpp> #include <core/common/Logger.hpp> #include <core/parser/StandaloneParserContext.hpp> #include <plugins/xml/XmlParser.hpp> namespace ousia { -namespace parser { -namespace xml { static TerminalLogger logger(std::cerr, true); @@ -41,7 +40,6 @@ TEST(XmlParser, mismatchedTagException) p.parse("<document>\n</document2>", ctx.context); } catch (LoggableException ex) { - ASSERT_EQ(2, ex.loc.line); hadException = true; } ASSERT_TRUE(hadException); @@ -82,8 +80,6 @@ TEST(XmlParser, namespaces) XmlParser p; CharReader reader(TEST_DATA); { - ScopedLogger sl(logger, "test.oxd", SourceLocation{}, - CharReader::contextCallback, &reader); try { p.parse(TEST_DATA, ctx.context); } @@ -94,6 +90,4 @@ TEST(XmlParser, namespaces) } } } -} -} |