test/test.rb in simple_option_parser-0.6 vs test/test.rb in simple_option_parser-0.7
- old
+ new
@@ -47,8 +47,17 @@
assert {
options == { foo: 'abc', bar: 'ghi' }
}
end
+ def test_multiple
+ op = SimpleOptionParser.new
+ argv = %w{--foo --bar=a --bar=b --zot=c}
+ options = op.parse(argv)
+ assert {
+ options == { foo: true, bar: ['a', 'b'], zot: 'c' }
+ }
+ end
+
end
end
\ No newline at end of file