diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2018-11-15 20:16:55 -0500 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2018-11-15 20:16:55 -0500 |
| commit | 2f3d7c21008510e240cfbeaa8179b7f03b432cce (patch) | |
| tree | 0e155709f7ce8694597f8a8c00c57066b68bfd5a /src/test | |
| parent | e3bc4bcf923665555aa587a82a7eba803799e423 (diff) | |
Fix up error handling (throw when parse errors happen)
Error handling for InflectionStrings will now make itself known, as an
exception will be thrown upon there being errors parsing the string.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/java/bjc/inflexion/InflectionMLTest.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/test/java/bjc/inflexion/InflectionMLTest.java b/src/test/java/bjc/inflexion/InflectionMLTest.java index e5a95c9..109547a 100644 --- a/src/test/java/bjc/inflexion/InflectionMLTest.java +++ b/src/test/java/bjc/inflexion/InflectionMLTest.java @@ -27,7 +27,9 @@ public class InflectionMLTest { pair("1 index was found", 1, "was"), pair("99 indexes were found", 99, "were")); // Check fancier inflection - assertInflects("<#wnc:%d> <Noun:indexes> %s found", pair("no indexes were found", 0, "were"), + // + // There was a 'c' option attached to the '#' directive, but I have no recollection of what that should've done. + assertInflects("<#wn:%d> <Noun:indexes> %s found", pair("no indexes were found", 0, "were"), pair("one index was found", 1, "was"), pair("99 indexes were found", 99, "were")); // Check count inflection @@ -116,7 +118,11 @@ public class InflectionMLTest { pair("1 index was found", 1, "was"), pair("99 indexes were found", 99, "were")); // Check fancier inflection - assertCInflects("<#wnc:$1> <Noun:indexes> $2 found", pair("no indexes were found", 0, "were"), + // + // There was a 'c' option attached to the '#' directive, but I have no recollection of what that should've done. + // + // As for the mixed-case options, the directive type can't be mixed case. + assertCInflects("<#wn:$1> <N:indexes> $2 found", pair("no indexes were found", 0, "were"), pair("one index was found", 1, "was"), pair("99 indexes were found", 99, "were")); // Check count inflection |
