arton / rjb

Ruby Java Bridge
https://www.artonx.org/collabo/backyard/?RubyJavaBridge
GNU Lesser General Public License v2.1
117 stars 34 forks source link

test/listtest.rb can't pass #103

Closed arton closed 6 months ago

arton commented 7 months ago
Error: test_create(ListTest): RuntimeError: ??
/usr/local/lib/ruby/site_ruby/3.3.0/rjb/list.rb:38:in `initialize_proxy'
/usr/local/lib/ruby/site_ruby/3.3.0/rjb/list.rb:14:in `method_missing'
/usr/local/lib/ruby/site_ruby/3.3.0/rjb/list.rb:14:in `each'
listtest.rb:27:in `test_create'
     24:     a.add(2)
     25:     a.add(3)
     26:     n = 1
  => 27:     a.each do |x|
     28:       assert_equal n, x.intValue
     29:       n += 1
     30:     end
========================================================================================================================
E
========================================================================================================================
Error: test_create(ListTest): TypeError: wrong argument type Object (expected Data)
/usr/local/lib/ruby/gems/3.3.0/gems/test-unit-3.6.1/lib/test/unit/testcase.rb:575:in `throw'

The result may varry such as NoSuchFieldError etc.