17 lines
680 B
Python
17 lines
680 B
Python
from pigeon_magnet_solver.board import Board
|
|
|
|
|
|
def test_default():
|
|
board = Board.default_puzzle
|
|
|
|
assert board.height == 4, "Wrong height"
|
|
assert board.width == 3, "Wrong width"
|
|
|
|
assert board.columns == ("001x", "1101", "110x"), "Wrong columns"
|
|
assert board.binary_repr == (4, 11, 3), "Wrong binary repr"
|
|
assert board.solution_class == (1, 3, 2), "Wrong solution class"
|
|
|
|
assert board.is_clickable(3) is False, "Button 3 should be inactive"
|
|
assert board.is_clickable(4) is True, "Button 4 should be active"
|
|
assert board.is_clickable(5) is True, "Button 5 should be active"
|
|
assert board.is_clickable(7) is False, "Button 7 should be inactive"
|