dfinke / PowerShellHumanizer

PowerShell Humanizer wraps Humanizer: meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities
Apache License 2.0
121 stars 18 forks source link

Test says indicies/indicy instead of indices/index #13

Closed MarkWhybird closed 6 years ago

MarkWhybird commented 6 years ago

Neither 'indicies' nor 'indicy' are words. indices/index are

Context 'Singularize' {
        $output = echo people men women geese indicies oxen knives | ConvertTo-Singular
        It 'Should convert to singles' {
            $output[0] | Should Be 'person'
            $output[1] | Should Be 'man'
            $output[2] | Should Be 'woman'
            $output[3] | Should Be 'goose'
            $output[4] | Should Be 'indicy'
            $output[5] | Should Be 'ox'
            $output[6] | Should Be 'knife'
        }
dfinke commented 6 years ago

Need to post that on https://github.com/Humanizr/Humanizer

MarkWhybird commented 6 years ago

Actually, Humanizer itself handles indices/index correctly. The test does what it does because the input "indicies" is not a real word, so Humanizer just takes a best guess at it.