From: martinahansen Date: Tue, 6 Sep 2011 11:47:33 +0000 (+0000) Subject: fixed typo in test_biopieces.rb X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8d3556a013f1a40312217043e63c3770ecf3bd01;p=biopieces.git fixed typo in test_biopieces.rb git-svn-id: http://biopieces.googlecode.com/svn/trunk@1523 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/code_ruby/test/maasha/test_biopieces.rb b/code_ruby/test/maasha/test_biopieces.rb index 86da311..af33967 100755 --- a/code_ruby/test/maasha/test_biopieces.rb +++ b/code_ruby/test/maasha/test_biopieces.rb @@ -201,7 +201,7 @@ class BiopiecesTest < Test::Unit::TestCase 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) } @@ -246,7 +246,7 @@ class BiopiecesTest < Test::Unit::TestCase 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 ?