diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-05-17 19:39:55 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-05-17 19:39:55 +0100 |
| commit | f51ba6089c53f07fdbfb9e89ebf0c44f8e44936b (patch) | |
| tree | 213752076fd5ba302fcae32700f270b1465d9eee /src/word_db.cc | |
| parent | 3b6d6956e24855b02ce1c89ce31e3a7554a8bdae (diff) | |
Use variadic macros for kak_assert to remove the need for COMMA
Diffstat (limited to 'src/word_db.cc')
| -rw-r--r-- | src/word_db.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/word_db.cc b/src/word_db.cc index 2e9581cb..f7ff11da 100644 --- a/src/word_db.cc +++ b/src/word_db.cc @@ -163,17 +163,17 @@ UnitTest test_word_db{[]() WordDB word_db(buffer); auto res = word_db.find_matching(""); std::sort(res.begin(), res.end(), cmp_words); - kak_assert(eq(res, WordList{ "allo" COMMA "kanaky" COMMA "mutch" COMMA "tchaa" COMMA "tchou" })); + kak_assert(eq(res, WordList{ "allo", "kanaky", "mutch", "tchaa", "tchou" })); kak_assert(word_db.get_word_occurences("tchou") == 3); kak_assert(word_db.get_word_occurences("allo") == 1); buffer.erase({1, 6}, {4, 0}); res = word_db.find_matching(""); std::sort(res.begin(), res.end(), cmp_words); - kak_assert(eq(res, WordList{ "allo" COMMA "mutch" COMMA "tchou" })); + kak_assert(eq(res, WordList{ "allo", "mutch", "tchou" })); buffer.insert({1, 0}, "re"); res = word_db.find_matching(""); std::sort(res.begin(), res.end(), cmp_words); - kak_assert(eq(res, WordList{ "allo" COMMA "mutch" COMMA "retchou" COMMA "tchou" })); + kak_assert(eq(res, WordList{ "allo", "mutch", "retchou", "tchou" })); }}; } |
