mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 06:15:41 +00:00
Added some broken autosingulars.
This commit is contained in:
1 parent
ec6c61d82a
commit
4ee9215e7b
2 files changed
+6
-2
No files matched your search
@@ -19,7 +19,7 @@ Mice = mouse
|
||||
Lice = louse
|
||||
News = !
|
||||
# We could add more detail (axemen, boatsmen, boogymen, cavemen, gentlemen, etc, but (A) there's stuff like 'cerumen', and (B) the 'men' ending is common in singulars and other languages.)
|
||||
# Therefore, the odds of a mistake are too high, so other than these 2 well known cases, so force the explicit singular.
|
||||
# Therefore, the odds of a mistake are too high, so other than these 2 well known cases, force the explicit singular.
|
||||
Men = man
|
||||
Women = woman
|
||||
minutiae = minutia
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2015 The Project Lombok Authors.
|
||||
* Copyright (C) 2015-2017 The Project Lombok Authors.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -48,5 +48,9 @@ public class TestSingulars {
|
||||
assertEquals("dataBase", autoSingularize("dataBases"));
|
||||
assertEquals("Query", autoSingularize("Queries"));
|
||||
assertEquals("Movie", autoSingularize("Movies"));
|
||||
assertEquals("cafe", autoSingularize("cafes"));
|
||||
assertEquals("cave", autoSingularize("caves"));
|
||||
assertEquals("leaf", autoSingularize("leaves"));
|
||||
assertEquals("autosave", autoSingularize("autosaves"));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user