Skip to content

Instantly share code, notes, and snippets.

@cheald
Created November 3, 2014 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cheald/fc8c917303cda3d04cc8 to your computer and use it in GitHub Desktop.
Save cheald/fc8c917303cda3d04cc8 to your computer and use it in GitHub Desktop.
$ bin/irb
jruby-1.7.16 :001 > require 'test/mri/ruby/test_enum.rb'
=> true
jruby-1.7.16 :003 > t = TestEnumerable.new "Test enumerable"
=> #<TestEnumerable:0x7f9fb036 @passed=nil, @__name__="Test enumerable", @__io__=nil>
jruby-1.7.16 :004 > t.setup
=> nil
jruby-1.7.16 :005 > t.instance_variable_get("@obj")
=> #<Object:0x11fb7f52>
jruby-1.7.16 :006 > t.test_cycle
=> true
[ 6/55] TestEnumerable#test_cycle = 0.02 s
1) Error:
TestEnumerable#test_cycle:
ArgumentError: wrong number of arguments (1 for 2)
/var/www/repos/jruby/test/mri/ruby/test_enum.rb:11:in `each'
org/jruby/RubyEnumerable.java:958:in `each_with_index'
org/jruby/RubyEnumerator.java:289:in `each'
org/jruby/RubyEnumerable.java:199:in `cycle'
/var/www/repos/jruby/test/mri/ruby/test_enum.rb:419:in `test_cycle'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment