Skip to content

Commit

Permalink
movie test
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Oct 24, 2018
1 parent 3d6f0b5 commit 8f6be1a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions flect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func Test_LoadReader(t *testing.T) {

var singlePluralAssertions = []tt{
{"", ""},
{"movie", "movies"},
{"ox", "oxen"},
{"user", "users"},
{"cat", "cats"},
Expand Down Expand Up @@ -158,6 +159,17 @@ var pluralSingularAssertions = []tt{}
func init() {
for k, v := range singleToPlural {
singlePluralAssertions = append(singlePluralAssertions, tt{k, v})

// add some variations
// singlePluralAssertions = append(singlePluralAssertions, tt{strings.ToUpper(k), v})
// singlePluralAssertions = append(singlePluralAssertions, tt{strings.ToLower(k), v})
// for i, x := range k {
// n := k[:i] + strings.ToLower(string(x)) + k[i+1:]
// singlePluralAssertions = append(singlePluralAssertions, tt{n, v})
//
// n = k[:i] + strings.ToUpper(string(x)) + k[i+1:]
// singlePluralAssertions = append(singlePluralAssertions, tt{n, v})
// }
}

for _, a := range singlePluralAssertions {
Expand Down

0 comments on commit 8f6be1a

Please sign in to comment.