Skip to content

Commit 0b6e2f0

Browse files
committed
add related tests
1 parent 575eb55 commit 0b6e2f0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/inflection.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ describe( 'test .pluralize', function (){
1818
it( 'should pluralize the given word', function (){
1919
inflection.pluralize( 'people' ).should.equal( 'people' );
2020
inflection.pluralize( 'men' ).should.equal( 'men' );
21+
inflection.pluralize( 'women' ).should.equal( 'women' );
22+
inflection.pluralize( 'woman' ).should.equal( 'women' );
2123
inflection.pluralize( 'person' ).should.equal( 'people' );
2224
inflection.pluralize( 'octopus' ).should.equal( 'octopi' );
2325
inflection.pluralize( 'human' ).should.equal( 'humans' );
@@ -52,6 +54,9 @@ describe( 'test .singularize', function (){
5254
inflection.singularize( 'child' ).should.equal( 'child' );
5355
inflection.singularize( 'children' ).should.equal( 'child' );
5456
inflection.singularize( 'address' ).should.equal( 'address' );
57+
inflection.singularize( 'man' ).should.equal( 'man' );
58+
inflection.singularize( 'woman' ).should.equal( 'woman' );
59+
inflection.singularize( 'women' ).should.equal( 'woman' );
5560
inflection.singularize( 'person' ).should.equal( 'person' );
5661
inflection.singularize( 'people' ).should.equal( 'person' );
5762
inflection.singularize( 'movies' ).should.equal( 'movie' );

0 commit comments

Comments
 (0)