diff options
| author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-03-02 15:58:55 +0100 | 
|---|---|---|
| committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-03-02 15:58:55 +0100 | 
| commit | 24c7a8d1e62dc52298ea1abdc8b44d70fff94b54 (patch) | |
| tree | c82a161ce02e177b6be5e63a65c5a2f42eecf2e6 /test | |
| parent | 4b5f37d07e4e691848b243ae795bb59893a6379c (diff) | |
| parent | 5b81f755a5303c3eab05c605711ecca32c071b6d (diff) | |
Merge branch 'astoecke_tokens' of somweyr.de:ousia into astoecke_tokens
Conflicts:
	application/src/core/parser/stack/Callbacks.hpp
	application/src/core/parser/stack/Handler.hpp
Diffstat (limited to 'test')
| -rw-r--r-- | test/formats/osxml/OsxmlEventParserTest.cpp | 11 | 
1 files changed, 9 insertions, 2 deletions
| diff --git a/test/formats/osxml/OsxmlEventParserTest.cpp b/test/formats/osxml/OsxmlEventParserTest.cpp index b24a43d..d4e9443 100644 --- a/test/formats/osxml/OsxmlEventParserTest.cpp +++ b/test/formats/osxml/OsxmlEventParserTest.cpp @@ -69,9 +69,16 @@ public:  		events.emplace_back(OsxmlEvent::RANGE_END, Variant::arrayType{});  	} -	void data(const Variant &data) override +	void data(const TokenizedData &data) override  	{ -		events.emplace_back(OsxmlEvent::DATA, Variant::arrayType{data}); +		Token token; +		Variant text; +		TokenizedDataReader reader = data.reader(); +		reader.read(token, TokenSet{}, WhitespaceMode::PRESERVE); +		EXPECT_EQ(Tokens::Data, token.id); +		text = Variant::fromString(token.content); +		text.setLocation(token.getLocation()); +		events.emplace_back(OsxmlEvent::DATA, Variant::arrayType{text});  	}  }; | 
