summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2021-11-16 13:51:05 +0000
committerReuben Thomas <rrt@sc3d.org>2021-11-16 13:51:51 +0000
commit35ea608c651cb478025c9fe96b41d77bac83bd87 (patch)
tree37f630f10cd93607739b9fbf7f9f381391b2bb54
parentb69a15d97c81e7a1434b52ffc7d5c803956d2f19 (diff)
downloadenchant-35ea608c651cb478025c9fe96b41d77bac83bd87.tar.gz
tests/pwl/enchant_pwl_tests.cpp: add extra check to prevent a crash
This should fix the test crash in #218 (though not the underlying bug!).
-rw-r--r--tests/pwl/enchant_pwl_tests.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/pwl/enchant_pwl_tests.cpp b/tests/pwl/enchant_pwl_tests.cpp
index 5dc1562..8625421 100644
--- a/tests/pwl/enchant_pwl_tests.cpp
+++ b/tests/pwl/enchant_pwl_tests.cpp
@@ -309,6 +309,7 @@ TEST_FIXTURE(EnchantPwl_TestFixture,
AddWordsToDictionary(sNoiseWords);
std::vector<std::string> suggestions = GetSuggestionsFromWord("saskep");
+ CHECK(suggestions.size() > 0);
// FIXME: The string in the next line was originally "hasten", but the
// test failed. Is this now correct?
CHECK(suggestions[0] != "hastens");