diff options
Diffstat (limited to 'src/unit_tests.cc')
| -rw-r--r-- | src/unit_tests.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unit_tests.cc b/src/unit_tests.cc index 66fe53f2..e26ce611 100644 --- a/src/unit_tests.cc +++ b/src/unit_tests.cc @@ -80,6 +80,8 @@ void test_word_db() auto res = word_db.find_prefix(""); std::sort(res.begin(), res.end()); kak_assert(res == std::vector<String>{ "allo" COMMA "kanaky" COMMA "mutch" COMMA "tchaa" COMMA "tchou" }); + kak_assert(word_db.get_word_occurences("tchou") == 3); + kak_assert(word_db.get_word_occurences("allo") == 1); buffer.erase(buffer.iterator_at({1, 6}), buffer.iterator_at({4, 0})); res = word_db.find_prefix(""); std::sort(res.begin(), res.end()); |
