patch 8.2.1493: not enough test coverage for the spell file handling
Problem: Not enough test coverage for the spell file handling.
Solution: Add spell file tests. (Yegappan Lakshmanan, closes #6728)
diff --git a/src/spellfile.c b/src/spellfile.c
index 8a029dc..957be09 100644
--- a/src/spellfile.c
+++ b/src/spellfile.c
@@ -519,7 +519,7 @@
lp->sl_syllable = read_string(fd, len); // <syllable>
if (lp->sl_syllable == NULL)
goto endFAIL;
- if (init_syl_tab(lp) == FAIL)
+ if (init_syl_tab(lp) != OK)
goto endFAIL;
break;