end
# # FIXME This one fails because any argument to a flag is ignored and the flag value is set to true. Should it raise?
-# test "Options.parse with type cast flag with an argument raises
+# test "Options.parse with type cast flag with and argument raises
# casts = [{:long=>"foo", :short=>"f", :type=>"flag", :mandatory=>false, :default=>nil, :allowed=>nil, :disallowed=>nil}]
# opt_parser = Options.new(casts)
# assert_raise(ArgumentError) { opt_parser.parse(["--foo", "bar"],SCRIPT_PATH) }
assert_nothing_raised(ArgumentError) { Biopieces.options_parse(argv,casts,SCRIPT_PATH) }
end
- # # This one results in an error: "OptionParser::InvalidArgument: invalid argument: --foo bar"
+# # This one results in an error: "OptionParser::InvalidArgument: invalid argument: --foo bar"
# # So it appears that this is tested in OptionParser already.
# test "Options.parse with type cast int and non-int value raises" do
# ["bar" ].each do |val| # what about nil, false, true, [], {}, 0.1 ?