summaryrefslogtreecommitdiff
path: root/test/option_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/option_test.rb')
-rw-r--r--test/option_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/option_test.rb b/test/option_test.rb
index 0a82aed..acd625f 100644
--- a/test/option_test.rb
+++ b/test/option_test.rb
@@ -86,6 +86,7 @@ class OptionTest < TestCase
test "array type cast" do
assert_equal %w/lee john bill/, option_value(%w/-p lee,john,bill/, :p=, :as => Array)
+ assert_equal %w/lee john bill jeff jill/, option_value(%w/-p lee,john,bill -p jeff,jill/, :p=, :as => Array)
assert_equal %w/lee john bill/, option_value(%w/-p lee:john:bill/, :p=, :as => Array, :delimiter => ':')
assert_equal %w/lee john,bill/, option_value(%w/-p lee,john,bill/, :p=, :as => Array, :limit => 2)
assert_equal %w/lee john:bill/, option_value(%w/-p lee:john:bill/, :p=, :as => Array, :limit => 2, :delimiter => ':')