tests.patch 1.1 KB

123456789101112131415161718192021222324252627282930
  1. Fix up an ambiguous parse and don't print a collection that is
  2. not printable (list of pairs of strings).
  3. diff --git a/lib/tests/stdboosterror.h b/lib/tests/stdboosterror.h
  4. index 568545b..030050e 100644
  5. --- a/lib/tests/stdboosterror.h
  6. +++ b/lib/tests/stdboosterror.h
  7. @@ -4,7 +4,7 @@
  8. #include <boost/regex/pattern_except.hpp>
  9. static boost::regex_error
  10. - std_boost_exception(boost::regex_error(boost::regex_constants::error_bad_pattern));
  11. + std_boost_exception(boost::regex_error{boost::regex_constants::error_bad_pattern});
  12. /**
  13. * returns the string representing a standard exception (which
  14. diff --git a/lib/tests/test_wordtokenizer_main.cpp b/lib/tests/test_wordtokenizer_main.cpp
  15. index 40e23b1..fee46ab 100644
  16. --- a/lib/tests/test_wordtokenizer_main.cpp
  17. +++ b/lib/tests/test_wordtokenizer_main.cpp
  18. @@ -28,7 +28,7 @@ int main() {
  19. WordTokenizer::tokenize(" Here are\t \t some_words!", tokens);
  20. - cout << "tokens: " << collectionToString(&tokens) << endl;
  21. + //cout << "tokens: " << collectionToString(&tokens) << endl;
  22. WordTokenizer::WordTokenizerResults::const_iterator tok = tokens.begin();