rime / librime-charcode

4 stars 3 forks source link

Test failures #1

Closed Arfrever closed 3 years ago

Arfrever commented 3 years ago

Parts of test suite fail:

$ test/charcode_test
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from RimeExtendedCharsetFilterTest
[ RUN      ] RimeExtendedCharsetFilterTest.FilterText
/tmp/librime-charcode/test/extended_charset_filter_test.cc:45: Failure
Value of: ExtendedCharsetFilter::FilterText("荣👋", "gbk+emoji")
  Actual: true
Expected: false
/tmp/librime-charcode/test/extended_charset_filter_test.cc:49: Failure
Value of: ExtendedCharsetFilter::FilterText("荣👋", "gb2312+emoji")
  Actual: true
Expected: false
[  FAILED  ] RimeExtendedCharsetFilterTest.FilterText (1 ms)
[----------] 1 test from RimeExtendedCharsetFilterTest (1 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (1 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] RimeExtendedCharsetFilterTest.FilterText

 1 FAILED TEST

Versions of dependencies:

lotem commented 3 years ago

Fixed by updating tests in https://github.com/rime/librime-charcode/commit/dce74d1f9ca2f2c844623aa9e831ca4a0f49789f