aboutsummaryrefslogtreecommitdiffstats
path: root/tests_solver
diff options
context:
space:
mode:
authorMarianne Chevrot <blackmoor+git@devys.org>2020-05-16 21:40:09 +0200
committerMarianne Chevrot <blackmoor+git@devys.org>2020-05-16 21:40:09 +0200
commitc5308d775b049b54894700e0de4cabe39b7efc2d (patch)
tree9ecc208f538f23a0cd7f24ca8a2bfce299281b1c /tests_solver
parent51b1fe928dc0d50efafb81786be2554707ffb315 (diff)
downloadkana_quest_solver-c5308d775b049b54894700e0de4cabe39b7efc2d.tar.gz
kana_quest_solver-c5308d775b049b54894700e0de4cabe39b7efc2d.tar.bz2
kana_quest_solver-c5308d775b049b54894700e0de4cabe39b7efc2d.zip
Add reveal unit test
Diffstat (limited to 'tests_solver')
-rw-r--r--tests_solver/test_solver.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests_solver/test_solver.py b/tests_solver/test_solver.py
index 03d68ed..2ddc152 100644
--- a/tests_solver/test_solver.py
+++ b/tests_solver/test_solver.py
@@ -34,6 +34,15 @@ def test_is_swappable():
assert not kanagrid.is_swappable((0, 0), (1, 0))
+def test_reveal_myst():
+
+ kanagrid_orig = KanaGrid((1, 1), [Kana("myst", "ko")])
+ kanagrid_new = kanagrid_orig.action(pos=(0, 0), action_type="reveal")
+ expected_grid = KanaGrid((1, 1), [Kana("norm", "ko")], action_count=1)
+
+ assert kanagrid_new == expected_grid
+
+
def test_kana_grid():
initial_grid = [