baob
09/27/2017, 7:07 PMBoard
with this function:
infix fun equals(other: Board) : Boolean {
return this.toState() == other.toState()
}
Which lets me write tests like
assertTrue(board equals Board(board.toState()) )
But I can’t get this to pass
assertThat(board, equalTo(Board(board.toState())))
nor this:
assertTrue(board == Board(board.toState()) )