From 2f3d7c21008510e240cfbeaa8179b7f03b432cce Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 15 Nov 2018 20:16:55 -0500 Subject: 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. --- src/test/java/bjc/inflexion/InflectionMLTest.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/test/java/bjc/inflexion') 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> %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> %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> $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> $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 -- cgit v1.2.3