aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_utils.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_utils.rb b/Library/Homebrew/test/test_utils.rb
index 915e17e70..0be6f50eb 100644
--- a/Library/Homebrew/test/test_utils.rb
+++ b/Library/Homebrew/test/test_utils.rb
@@ -47,4 +47,11 @@ class UtilTests < Homebrew::TestCase
assert_equal "success", out
assert_predicate $?, :success?
end
+
+ def test_plural
+ assert_equal "", plural(1)
+ assert_equal "s", plural(0)
+ assert_equal "s", plural(42)
+ assert_equal "", plural(42, "")
+ end
end