test/test.rb in mpatch-2.8.1 vs test/test.rb in mpatch-2.9.0

- old
+ new

@@ -1,32 +1,4 @@ -require_relative '../lib/mpatch/object' +require_relative '../lib/mpatch/array' MPatch.patch! - - - -try { hello world } -catch{ "not hello world " } -#> "not hello world" - - -try { "hello world".asdaf } -catch( NoMethodError ) { |ex| - puts "there is and error, because #{ex}" -} - -#> you can cain up multiple catch for specific error -try { "hello world".asdaf } -catch( NoMethodError ) { |ex| - puts "there is and error, because #{ex}" -} - -try { "hello world".asdaf } -catch(ArgumentError) { - puts "it was and argument error" -} - -catch( NoMethodError ) { |ex| - puts "bla bla #{ex}" -} -