assert_nothing_raised do
@board.make_move(0,0,Board::HUMAN)
end
和文档说:
Passes if block does not throw anything.
Example:
assert_nothing_thrown do
[1, 2].uniq
end
我的 make_move 方法:
def make_move(x, y, player)
return false
end
我得到错误:
test_can_make_valid_move_in_the_first_row(BoardTest):
ArgumentError: wrong number of arguments (1 for 2)