Skip to content

Commit

Permalink
Merge pull request #1135 from hangy/issue/1132
Browse files Browse the repository at this point in the history
  • Loading branch information
clairernovotny authored Oct 27, 2021
2 parents 629f3cb + d7dd6a0 commit 14878fe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Humanizer.Tests.Shared/InflectorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

using System.Collections;
using System.Collections.Generic;

using Xunit;

namespace Humanizer.Tests
Expand Down Expand Up @@ -203,8 +204,8 @@ public IEnumerator<object[]> GetEnumerator()
yield return new object[] { "chairman", "chairmen" };
yield return new object[] { "human", "humans" };
yield return new object[] { "personnel", "personnel" };
yield return new object[] { "staff", "staff" };
yield return new object[] { "training", "training" };
yield return new object[] { "staff", "staff" };
yield return new object[] { "training", "training" };

yield return new object[] { "basis", "bases" };
yield return new object[] { "diagnosis", "diagnoses" };
Expand Down Expand Up @@ -363,13 +364,16 @@ public IEnumerator<object[]> GetEnumerator()
yield return new object[] { "rookie", "rookies" };
yield return new object[] { "roomie", "roomies" };
yield return new object[] { "smoothie", "smoothies" };

//Issue #789
yield return new object[] { "cache", "caches" };

//Issue #975, added by Alex Boutin
yield return new object[] { "ex", "exes" };
yield return new object[] { "", "" };

//Issue 1132
yield return new object[] { "metadata", "metadata" };
}

IEnumerator IEnumerable.GetEnumerator()
Expand Down
3 changes: 3 additions & 0 deletions src/Humanizer/Inflections/Vocabularies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ private static Vocabulary BuildDefault()
_default.AddUncountable("means");
_default.AddUncountable("mail");

//Fix 1132
_default.AddUncountable("metadata");

return _default;
}
}
Expand Down

0 comments on commit 14878fe

Please sign in to comment.