From 209e3742269d0a6a12c6124aef3f310ff3bcd124 Mon Sep 17 00:00:00 2001 From: rjawor Date: Wed, 19 Aug 2015 20:53:40 +0200 Subject: [PATCH] repaired concordia test --- concordia/t/test_concordia.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/concordia/t/test_concordia.cpp b/concordia/t/test_concordia.cpp index 21548a0..8241fce 100644 --- a/concordia/t/test_concordia.cpp +++ b/concordia/t/test_concordia.cpp @@ -357,7 +357,6 @@ BOOST_AUTO_TEST_CASE( Tokenize ) 12,16 type: 1 value: kota */ - concordia.clearIndex(); BOOST_CHECK_EQUAL(ts.getTokens().size(), 3); BOOST_CHECK_EQUAL(ts.getTokens().at(1).getStart(), 9); @@ -371,6 +370,9 @@ BOOST_AUTO_TEST_CASE( Tokenize ) sentences.push_back("This, is (a) weird;! sentence <>"); std::vector tokenizedSentences = concordia.tokenizeAll(sentences); + + concordia.clearIndex(); + BOOST_CHECK_EQUAL(tokenizedSentences.size(), 3); BOOST_CHECK_EQUAL(tokenizedSentences.at(0).getTokens().size(), 3); BOOST_CHECK_EQUAL(tokenizedSentences.at(1).getTokens().size(), 2);