diff options
author | Marianne Chevrot <blackmoor+git@devys.org> | 2020-05-16 21:40:09 +0200 |
---|---|---|
committer | Marianne Chevrot <blackmoor+git@devys.org> | 2020-05-16 21:40:09 +0200 |
commit | c5308d775b049b54894700e0de4cabe39b7efc2d (patch) | |
tree | 9ecc208f538f23a0cd7f24ca8a2bfce299281b1c | |
parent | 51b1fe928dc0d50efafb81786be2554707ffb315 (diff) | |
download | kana_quest_solver-c5308d775b049b54894700e0de4cabe39b7efc2d.tar.gz kana_quest_solver-c5308d775b049b54894700e0de4cabe39b7efc2d.tar.bz2 kana_quest_solver-c5308d775b049b54894700e0de4cabe39b7efc2d.zip |
Add reveal unit test
-rw-r--r-- | .coverage | 2 | ||||
-rw-r--r-- | tests_solver/test_solver.py | 9 |
2 files changed, 10 insertions, 1 deletions
@@ -1 +1 @@ -!coverage.py: This is a private format, don't read it directly!{"lines":{"/home/calendros/games/kana_quest/solver/solver.py":[5,15,16,18,19,21,23,24,25,26,28,39,42,45,29,30,34,35,48,50,59,68,99,122,129,148,163,166,175,183,190,217,226,229,236,245,284,288,294,305,315,323,333,361,36,37,52,53,54,55,56,57,40,69,176,178,181,70,72,73,74,75,76,77,78,79,71,81,82,84,85,86,87,83,89,90,91,96,97,100,107,108,110,111,116,117,60,61,62,63,64,65,118,119,191,193,199,200,201,202,204,207,184,186,188,208,210,213,214,215,120,230,164,149,150,151,152,123,124,125,126,127,153,155,156,130,132,133,135,136,137,138,134,140,141,143,144,145,289,291,177,157,158,159,160,290,146,142,154,179,161,232,233,247,248,249,250,251,252,253,254,246,256,257,258,259,260,261,262,263,264,265,267,272,273,274,275,276,280,266,281,231,285,43,109,92,93,94,211,238,239,240,241,237,95,112,113,114,115]}}
\ No newline at end of file +!coverage.py: This is a private format, don't read it directly!{"lines":{"/home/storage/Games/kana_quest/kana_quest_solver/solver.py":[5,17,18,20,21,23,25,27,29,45,48,51,30,31,35,38,54,56,58,69,79,108,143,150,173,192,195,204,212,219,246,255,258,265,274,308,312,320,329,339,347,357,388,39,42,43,61,62,63,64,65,66,67,46,80,205,207,210,81,83,84,85,86,87,88,82,90,91,93,94,95,96,92,98,99,100,105,106,109,110,111,112,70,71,72,73,74,75,76,113,114,213,215,217,115,267,268,269,49,270,266,116,118,119,120,121,117,123,124,137,138,139,140,220,222,228,229,230,231,233,236,237,239,242,243,244,141,259,193,174,175,176,177,178,144,145,146,147,148,179,181,182,151,152,154,155,156,157,159,160,161,162,158,164,165,167,208,168,171,183,184,185,186,187,188,169,313,315,317,206,316,170,166,180,189,261,262,276,277,278,279,280,281,282,283,284,275,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,304,305,260,309,101,102,103,240,104]}}
\ No newline at end of file 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 = [ |