Merge branch 'jfernstad/fix-area-plural-issue' into dev
This commit is contained in:
commit
229c6ebc35
2 changed files with 3 additions and 0 deletions
|
@ -193,6 +193,7 @@ func newBoilRuleset() *inflect.Ruleset {
|
|||
rs.AddSingularExact("is", "is", true)
|
||||
rs.AddSingularExact("us", "us", true)
|
||||
rs.AddSingularExact("as", "as", true)
|
||||
rs.AddSingularExact("areas", "area", true)
|
||||
rs.AddPluralExact("a", "a", true)
|
||||
rs.AddPluralExact("i", "i", true)
|
||||
rs.AddPluralExact("is", "is", true)
|
||||
|
|
|
@ -139,6 +139,7 @@ func TestSingular(t *testing.T) {
|
|||
{"hello_people", "hello_person"},
|
||||
{"hello_person", "hello_person"},
|
||||
{"friends", "friend"},
|
||||
{"areas", "area"},
|
||||
{"hello_there_people", "hello_there_person"},
|
||||
}
|
||||
|
||||
|
@ -159,6 +160,7 @@ func TestPlural(t *testing.T) {
|
|||
{"hello_person", "hello_people"},
|
||||
{"friend", "friends"},
|
||||
{"friends", "friends"},
|
||||
{"area", "areas"},
|
||||
{"hello_there_person", "hello_there_people"},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue