diff options
author | Lee Jarvis <lee@jarvis.co> | 2012-07-31 18:40:44 +0100 |
---|---|---|
committer | Lee Jarvis <lee@jarvis.co> | 2012-07-31 18:40:44 +0100 |
commit | ccadb9da05f9a3eb0e38c07229869288ed056750 (patch) | |
tree | 83ff858eebb3d1eb03f8df61c46afb3fcaf82cc6 /test/option_test.rb | |
parent | c91dfb3f66e877f579ed972376080f7abadd9282 (diff) | |
download | slop-ccadb9da05f9a3eb0e38c07229869288ed056750.tar.gz |
add the ability to concat list arguments together as a single value
closes #71
Diffstat (limited to 'test/option_test.rb')
-rw-r--r-- | test/option_test.rb | 1 |
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 => ':') |