From 9127ee1928c1de98f1f158dd4169e2e3a5a90275 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Mon, 14 Dec 2015 15:01:31 +0100 Subject: plural: tests added --- Library/Homebrew/test/test_utils.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3