Commit 556baeaf authored by Frederik Schwarzer's avatar Frederik Schwarzer

Better test for swapTiles().

parent ea394487
......@@ -31,7 +31,12 @@ void MoveTest::swap()
auto move = KShisen::Move(m_tile1, m_tile2, 12, 34);
move.swapTiles();
QCOMPARE(move.x1(), 3);
QCOMPARE(move.y1(), 4);
QCOMPARE(move.tile1(), 34);
QCOMPARE(move.x2(), 1);
QCOMPARE(move.y2(), 2);
QCOMPARE(move.tile2(), 12);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment