Changeset 439 for EcnlProtoTool/trunk/mruby-2.1.1/test/t/exception.rb
- Timestamp:
- Jul 9, 2020, 8:51:43 AM (4 years ago)
- 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 264 264 265 265 assert('Exception 14') do 266 def exception_test14; UnknownConstant;end266 def (o = Object.new).exception_test14; UnknownConstant end 267 267 a = :ng 268 268 begin 269 send(:exception_test14)269 o.__send__(:exception_test14) 270 270 rescue 271 271 a = :ok … … 353 353 end 354 354 355 assert('Exception#inspect without message') do355 assert('Exception#inspect') do 356 356 assert_equal "Exception", Exception.new.inspect 357 assert_equal "Exception", Exception.new("").inspect 358 assert_equal "error! (Exception)", Exception.new("error!").inspect 357 359 end 358 360 … … 399 401 rescue => exception 400 402 GC.start 401 assert_equal("#{__FILE__}:#{line} :in call",403 assert_equal("#{__FILE__}:#{line}", 402 404 exception.backtrace.first) 403 405 end … … 417 419 [3].each do 418 420 end 419 assert_equal("#{__FILE__}:#{line} :in call",421 assert_equal("#{__FILE__}:#{line}", 420 422 exception.backtrace.first) 421 423 end
Note:
See TracChangeset
for help on using the changeset viewer.