Ignore:
Timestamp:
Jul 9, 2020, 8:51:43 AM (4 years ago)
Author:
coas-nagasima
Message:

mrubyを2.1.1に更新

Location:
EcnlProtoTool/trunk/mruby-2.1.1
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/mruby-2.1.1/test/t/exception.rb

    r331 r439  
    264264
    265265assert('Exception 14') do
    266   def exception_test14; UnknownConstant; end
     266  def (o = Object.new).exception_test14; UnknownConstant end
    267267  a = :ng
    268268  begin
    269     send(:exception_test14)
     269    o.__send__(:exception_test14)
    270270  rescue
    271271    a = :ok
     
    353353end
    354354
    355 assert('Exception#inspect without message') do
     355assert('Exception#inspect') do
    356356  assert_equal "Exception", Exception.new.inspect
     357  assert_equal "Exception", Exception.new("").inspect
     358  assert_equal "error! (Exception)", Exception.new("error!").inspect
    357359end
    358360
     
    399401  rescue => exception
    400402    GC.start
    401     assert_equal("#{__FILE__}:#{line}:in call",
     403    assert_equal("#{__FILE__}:#{line}",
    402404                 exception.backtrace.first)
    403405  end
     
    417419    [3].each do
    418420    end
    419     assert_equal("#{__FILE__}:#{line}:in call",
     421    assert_equal("#{__FILE__}:#{line}",
    420422                 exception.backtrace.first)
    421423  end
Note: See TracChangeset for help on using the changeset viewer.