Skip to content
Permalink
Browse files

Fix inverted logic in RTFToken::isEmpty().

* src/filterrtf.cpp (RTFToken::isEmpty()):
  - Fix inverted logic, which caused some token to be not flushed.
* tests/petavatthu1-wseg.rtf:
  - Update checking wordseg output.
  • Loading branch information...
thep committed Aug 13, 2018
1 parent f373461 commit 9ef3a785fd3dc405e4fb25fc571fa4461eb1e770
Showing with 731 additions and 722 deletions.
  1. +9 −0 ChangeLog
  2. +1 −1 src/filterrtf.cpp
  3. +721 −721 tests/petavatthu1-wseg.rtf
@@ -1,3 +1,12 @@
2018-08-13 Theppitak Karoonboonyanan <theppitak@gmail.com>

Fix inverted logic in RTFToken::isEmpty().

* src/filterrtf.cpp (RTFToken::isEmpty()):
- Fix inverted logic, which caused some token to be not flushed.
* tests/petavatthu1-wseg.rtf:
- Update checking wordseg output.

2018-08-13 Theppitak Karoonboonyanan <theppitak@gmail.com>

Add RTF test case.
@@ -30,7 +30,7 @@ class RTFToken

ETokenType getType() const { return type; }
const char* getVal() const { return val; }
bool isEmpty() const { return valLen > 0; }
bool isEmpty() const { return valLen == 0; }

void reset ();
void set (char c);

0 comments on commit 9ef3a78

Please sign in to comment.
You can’t perform that action at this time.