aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_utils.rb
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-12-14 15:01:31 +0100
committerBaptiste Fontaine2015-12-14 15:01:31 +0100
commit9127ee1928c1de98f1f158dd4169e2e3a5a90275 (patch)
tree0785100e0066bcab23b156000bb08c45569ed32e /Library/Homebrew/test/test_utils.rb
parentfedbb0627803e21718ade9e8970171a997a57d97 (diff)
downloadbrew-9127ee1928c1de98f1f158dd4169e2e3a5a90275.tar.bz2
plural: tests added
Diffstat (limited to 'Library/Homebrew/test/test_utils.rb')
-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