We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f932cc commit cb26ebbCopy full SHA for cb26ebb
src/PrintHelper.jl
@@ -26,6 +26,9 @@ function pluralize(noun::String)
26
# vertex -> vertices
27
endswith(noun, "ex") && return noun[1:end-2] * "ices"
28
29
+ # box -> boxes
30
+ endswith(noun, "ox") && return noun[1:end-2] * "oxes"
31
+
32
# polyhedron -> polyhedra
33
endswith(noun, "ron") && return noun[1:end-2] * "a"
34
test/PrintHelper-test.jl
@@ -1,5 +1,6 @@
1
@testset "pluralize" begin
2
@test pluralize("basis") == "bases"
3
+ @test pluralize("box") == "boxes"
4
@test pluralize("child") == "children"
5
@test pluralize("generator") == "generators"
6
@test pluralize("indeterminate") == "indeterminates"
0 commit comments