Skip to content

Instantly share code, notes, and snippets.

@eagleflo
Created September 25, 2010 05:15
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 eagleflo/596504 to your computer and use it in GitHub Desktop.
Save eagleflo/596504 to your computer and use it in GitHub Desktop.
gorb errors in alternative Ruby implementations
Aku-Kotkavuos-iMac:gorb aku$ macrake
(in /Users/aku/Dropbox/work/gorb)
Loaded suite /Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake/rake_test_loader
Started
...unknown: warning: instance variable @board not initialized
E.EE.E..E..E..Eunknown: warning: instance variable @board not initialized
EEEEE.E...E
Finished in 0.963351 seconds.
1) Error:
test_capture(TestBoard):
NoMethodError: undefined method `groups' for nil:NilClass
/Users/aku/Dropbox/work/gorb/lib/gorb/group.rb:44:in `liberties!'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:112:in `block'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:111:in `resolve!:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:104:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/test/test_board.rb:42:in `test_capture'
2) Error:
test_ko_enforcement(TestBoard):
NoMethodError: undefined method `liberties' for "C1":String
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:97:in `block'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:96:in `legal?:'
/Users/aku/Dropbox/work/gorb/test/test_board.rb:121:in `test_ko_enforcement'
3) Error:
test_legal?(TestBoard):
NoMethodError: undefined method `merge' for [...]:Array
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:48:in `find_group'
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:18:in `initialize:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:89:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/test/test_board.rb:89:in `test_legal?'
4) Error:
test_read_gnugo_output(TestBoard):
NoMethodError: undefined method `merge' for "G19":String
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:48:in `find_group'
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:18:in `initialize:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:89:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:275:in `block'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:270:in `block'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:269:in `read:'
/Users/aku/Dropbox/work/gorb/test/test_board.rb:453:in `test_read_gnugo_output'
5) Error:
test_scoring_full(TestBoard):
NoMethodError: undefined method `merge' for "G19":String
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:48:in `find_group'
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:18:in `initialize:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:89:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:275:in `block'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:270:in `block'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:269:in `read:'
/Users/aku/Dropbox/work/gorb/test/test_board.rb:707:in `test_scoring_full'
6) Error:
test_stone_at?(TestBoard):
NoMethodError: undefined method `merge' for [...]:Array
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:48:in `find_group'
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:18:in `initialize:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:89:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/test/test_board.rb:73:in `test_stone_at?'
7) Error:
test_group_liberties(TestGroup):
NoMethodError: undefined method `merge' for [...]:Array
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:48:in `find_group'
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:18:in `initialize:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:89:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/test/test_group.rb:83:in `test_group_liberties'
8) Error:
test_group_liberties!(TestGroup):
NoMethodError: undefined method `groups' for nil:NilClass
/Users/aku/Dropbox/work/gorb/lib/gorb/group.rb:44:in `liberties!'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:112:in `block'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:111:in `resolve!:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:104:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/test/test_group.rb:105:in `test_group_liberties!'
9) Error:
test_include(TestGroup):
NoMethodError: undefined method `merge' for [...]:Array
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:48:in `find_group'
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:18:in `initialize:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:89:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/test/test_group.rb:73:in `test_include'
10) Error:
test_merge(TestGroup):
NoMethodError: undefined method `merge' for [...]:Array
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:48:in `find_group'
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:18:in `initialize:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:89:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/test/test_group.rb:17:in `test_merge'
11) Error:
test_merge_a10(TestGroup):
NoMethodError: undefined method `merge' for [...]:Array
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:48:in `find_group'
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:18:in `initialize:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:89:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:273:in `block'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:270:in `block'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:269:in `read:'
/Users/aku/Dropbox/work/gorb/test/test_group.rb:63:in `test_merge_a10'
12) Error:
test_merge_m17(TestGroup):
NoMethodError: undefined method `merge' for "G19":String
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:48:in `find_group'
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:18:in `initialize:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:89:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:275:in `block'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:270:in `block'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:269:in `read:'
/Users/aku/Dropbox/work/gorb/test/test_group.rb:42:in `test_merge_m17'
13) Error:
test_find_group_and_merge(TestStone):
NoMethodError: undefined method `merge' for "J10":String
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:48:in `find_group'
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:18:in `initialize:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:89:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/test/test_stone.rb:57:in `test_find_group_and_merge'
14) Error:
test_stone_liberties(TestStone):
NoMethodError: undefined method `merge' for [...]:Array
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:48:in `find_group'
/Users/aku/Dropbox/work/gorb/lib/gorb/stone.rb:18:in `initialize:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:89:in `legal?:'
/Users/aku/Dropbox/work/gorb/lib/gorb/board.rb:63:in `add_stone:'
/Users/aku/Dropbox/work/gorb/test/test_stone.rb:46:in `test_stone_liberties'
29 tests, 259 assertions, 0 failures, 14 errors, 0 skips
Test run options: --seed 27708
rake aborted!
Command failed with status (1): [/Library/Frameworks/MacRuby.framework/Vers...]
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:993:in `block'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:1008:in `sh:'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:1027:in `ruby:'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake/testtask.rb:115:in `block'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:1110:in `verbose:'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake/testtask.rb:100:in `block'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:634:in `block'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:629:in `execute:'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:595:in `block'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/monitor.rb:201:in `synchronize'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:588:in `invoke_with_call_chain:'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:605:in `block'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:602:in `invoke_prerequisites:'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:594:in `block'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/monitor.rb:201:in `synchronize'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:588:in `invoke_with_call_chain:'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:581:in `invoke'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:2042:in `invoke_task:'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:2020:in `block'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:2020:in `block'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:2059:in `standard_exception_handling'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:2014:in `top_level'
/Library/Frameworks/MacRuby.framework/Versions/0.8/usr/lib/ruby/1.9.2/rake.rb:1993:in `run'
/usr/local/bin/macrake:31:in `<main>'
Aku-Kotkavuos-MacBook-Pro:gorb aku$ rbx -S rake
(in /Users/aku/Dropbox/work/gorb)
Loaded suite /usr/local/Cellar/rubinius/1.2.0/lib/rubinius/gems/rubinius/preinstalled/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
EEEEEEEEE.EEE.E..EEEEEE.E..EE
Finished in 0.182453 seconds.
1) Error:
test_13x13_and_handicaps(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./lib/gorb/board.rb:41:in `initialize'
kernel/bootstrap/array.rb:71:in `each'
./lib/gorb/board.rb:41:in `initialize'
./test/test_board.rb:322:in `test_13x13_and_handicaps'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
2) Error:
test_9x9_and_handicaps(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./lib/gorb/board.rb:41:in `initialize'
kernel/bootstrap/array.rb:71:in `each'
./lib/gorb/board.rb:41:in `initialize'
./test/test_board.rb:241:in `test_9x9_and_handicaps'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
3) Error:
test_add_stone(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./test/test_board.rb:32:in `test_add_stone'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
4) Error:
test_capture(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./test/test_board.rb:40:in `test_capture'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
5) Error:
test_handicapped_initialize(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./lib/gorb/board.rb:41:in `initialize'
kernel/bootstrap/array.rb:71:in `each'
./lib/gorb/board.rb:41:in `initialize'
./test/test_board.rb:156:in `test_handicapped_initialize'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
6) Error:
test_ko_enforcement(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./test/test_board.rb:118:in `test_ko_enforcement'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
7) Error:
test_legal?(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./test/test_board.rb:89:in `test_legal?'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
8) Error:
test_read(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./lib/gorb/board.rb:275:in `read'
kernel/common/enumerable.rb:397:in `each_with_index'
kernel/bootstrap/array.rb:71:in `each'
kernel/common/enumerable.rb:397:in `each_with_index'
./lib/gorb/board.rb:270:in `read'
kernel/common/enumerable.rb:397:in `each_with_index'
kernel/bootstrap/array.rb:71:in `each'
kernel/common/enumerable.rb:397:in `each_with_index'
./lib/gorb/board.rb:269:in `read'
./test/test_board.rb:404:in `test_read'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
9) Error:
test_read_gnugo_output(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./lib/gorb/board.rb:275:in `read'
kernel/common/enumerable.rb:397:in `each_with_index'
kernel/bootstrap/array.rb:71:in `each'
kernel/common/enumerable.rb:397:in `each_with_index'
./lib/gorb/board.rb:270:in `read'
kernel/common/enumerable.rb:397:in `each_with_index'
kernel/bootstrap/array.rb:71:in `each'
kernel/common/enumerable.rb:397:in `each_with_index'
./lib/gorb/board.rb:269:in `read'
./test/test_board.rb:453:in `test_read_gnugo_output'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
10) Error:
test_scoring(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./lib/gorb/board.rb:275:in `read'
kernel/common/enumerable.rb:397:in `each_with_index'
kernel/bootstrap/array.rb:71:in `each'
kernel/common/enumerable.rb:397:in `each_with_index'
./lib/gorb/board.rb:270:in `read'
kernel/common/enumerable.rb:397:in `each_with_index'
kernel/bootstrap/array.rb:71:in `each'
kernel/common/enumerable.rb:397:in `each_with_index'
./lib/gorb/board.rb:269:in `read'
./test/test_board.rb:672:in `test_scoring'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
11) Error:
test_scoring_full(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./lib/gorb/board.rb:275:in `read'
kernel/common/enumerable.rb:397:in `each_with_index'
kernel/bootstrap/array.rb:71:in `each'
kernel/common/enumerable.rb:397:in `each_with_index'
./lib/gorb/board.rb:270:in `read'
kernel/common/enumerable.rb:397:in `each_with_index'
kernel/bootstrap/array.rb:71:in `each'
kernel/common/enumerable.rb:397:in `each_with_index'
./lib/gorb/board.rb:269:in `read'
./test/test_board.rb:707:in `test_scoring_full'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
12) Error:
test_search(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./test/test_board.rb:66:in `test_search'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
13) Error:
test_stone_at?(TestBoard):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./test/test_board.rb:73:in `test_stone_at?'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
14) Error:
test_group_liberties(TestGroup):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./test/test_group.rb:83:in `test_group_liberties'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
15) Error:
test_group_liberties!(TestGroup):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./test/test_group.rb:102:in `test_group_liberties!'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
16) Error:
test_include(TestGroup):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./test/test_group.rb:73:in `test_include'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
17) Error:
test_merge(TestGroup):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./test/test_group.rb:15:in `test_merge'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
18) Error:
test_merge_a10(TestGroup):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./lib/gorb/board.rb:273:in `read'
kernel/common/enumerable.rb:397:in `each_with_index'
kernel/bootstrap/array.rb:71:in `each'
kernel/common/enumerable.rb:397:in `each_with_index'
./lib/gorb/board.rb:270:in `read'
kernel/common/enumerable.rb:397:in `each_with_index'
kernel/bootstrap/array.rb:71:in `each'
kernel/common/enumerable.rb:397:in `each_with_index'
./lib/gorb/board.rb:269:in `read'
./test/test_group.rb:63:in `test_merge_a10'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
19) Error:
test_merge_m17(TestGroup):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./lib/gorb/board.rb:275:in `read'
kernel/common/enumerable.rb:397:in `each_with_index'
kernel/bootstrap/array.rb:71:in `each'
kernel/common/enumerable.rb:397:in `each_with_index'
./lib/gorb/board.rb:270:in `read'
kernel/common/enumerable.rb:397:in `each_with_index'
kernel/bootstrap/array.rb:71:in `each'
kernel/common/enumerable.rb:397:in `each_with_index'
./lib/gorb/board.rb:269:in `read'
./test/test_group.rb:42:in `test_merge_m17'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
20) Error:
test_find_group_and_merge(TestStone):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./test/test_stone.rb:53:in `test_find_group_and_merge'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
21) Error:
test_smaller_boards(TestStone):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./lib/gorb/board.rb:41:in `initialize'
kernel/bootstrap/array.rb:71:in `each'
./lib/gorb/board.rb:41:in `initialize'
./test/test_stone.rb:62:in `test_smaller_boards'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
22) Error:
test_stone_liberties(TestStone):
ArgumentError: method 'initialize': given 0, expected 2
kernel/common/marshal.rb:416:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:395:in `construct'
kernel/common/marshal.rb:401:in `construct'
kernel/common/marshal.rb:420:in `construct_array'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:419:in `construct_array'
kernel/common/marshal.rb:353:in `construct'
kernel/common/marshal.rb:847:in `set_instance_variables'
kernel/common/integer.rb:121:in `times'
kernel/common/marshal.rb:845:in `set_instance_variables'
kernel/common/marshal.rb:547:in `construct_object'
kernel/common/marshal.rb:361:in `construct'
kernel/common/marshal.rb:913:in `load'
./lib/gorb/board.rb:86:in `legal?'
./lib/gorb/board.rb:63:in `add_stone'
./test/test_stone.rb:46:in `test_stone_liberties'
kernel/bootstrap/array.rb:71:in `each'
kernel/bootstrap/array.rb:71:in `each'
29 tests, 78 assertions, 0 failures, 22 errors
rake aborted!
Command failed with status (1): [/usr/local/Cellar/rubinius/1.2.0/bin/rbx -...]
(See full trace by running task with --trace)
Aku-Kotkavuos-iMac:gorb aku$ rake
(in /Users/aku/Dropbox/work/gorb)
Loaded suite /usr/local/Cellar/ruby/1.9.2-p0/lib/ruby/1.9.1/rake/rake_test_loader
Started
.............................
Finished in 3.002556 seconds.
29 tests, 494 assertions, 0 failures, 0 errors, 0 skips
Test run options: --seed 41578
Aku-Kotkavuos-iMac:gorb aku$ jrake
(in /Users/aku/Dropbox/work/gorb)
Loaded suite /usr/local/Cellar/jruby/1.5.6/jruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
.............................
Finished in 3.921 seconds.
29 tests, 494 assertions, 0 failures, 0 errors
@eagleflo
Copy link
Author

MacRuby issue might stem from inheriting from Array. Need to investigate further.

Apparently the Rubinius problem is with the Marshal module (a trick used to make a deep copy of Board object).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment