From dbdf99650e6cdb43afb3b91c6890c5b706de8d0d Mon Sep 17 00:00:00 2001 From: qwint Date: Wed, 2 Oct 2024 10:53:09 -0500 Subject: [PATCH] add collect tests for full cloak --- worlds/hk/test/test_collect.py | 61 +++++++++++++++++++++++----------- 1 file changed, 41 insertions(+), 20 deletions(-) diff --git a/worlds/hk/test/test_collect.py b/worlds/hk/test/test_collect.py index a3c93f7c91b8..feb013da9684 100644 --- a/worlds/hk/test/test_collect.py +++ b/worlds/hk/test/test_collect.py @@ -105,28 +105,14 @@ def cloak_test(self, collect_cloaks, remove_cloaks, final_state): multiworld.state.prog_items = empty_state.prog_items def testCollect_cloak_iterations(self): - # with self.subTest("Split Left Only"): - # self.cloak_test( - # ["Left_Mothwing_Cloak"], - # ["Left_Mothwing_Cloak"], - # {}, - # ) - - # with self.subTest("LRR - L"): - # self.cloak_test( - # ["Left_Mothwing_Cloak", "Right_Mothwing_Cloak", "Right_Mothwing_Cloak"], - # ["Left_Mothwing_Cloak"], - # {"Right_Mothwing_Cloak": 2, "RIGHTDASH": 2}, - # ) - - # with self.subTest("RLL - R"): - # self.cloak_test( - # ["Right_Mothwing_Cloak", "Left_Mothwing_Cloak", "Left_Mothwing_Cloak"], - # ["Right_Mothwing_Cloak"], - # {"Left_Mothwing_Cloak": 2, "LEFTDASH": 2}, - # ) # LLR + with self.subTest("LLR"): + self.cloak_test( + ["Left_Mothwing_Cloak", "Left_Mothwing_Cloak", "Right_Mothwing_Cloak"], + [], + {"Left_Mothwing_Cloak": 2, "LEFTDASH": 2, "Right_Mothwing_Cloak": 1, "RIGHTDASH": 2}, + ) with self.subTest("L - L"): self.cloak_test( ["Left_Mothwing_Cloak"], @@ -165,6 +151,12 @@ def testCollect_cloak_iterations(self): ) # LRL + with self.subTest("LRL"): + self.cloak_test( + ["Left_Mothwing_Cloak", "Right_Mothwing_Cloak", "Left_Mothwing_Cloak"], + [], + {"Left_Mothwing_Cloak": 2, "LEFTDASH": 2, "Right_Mothwing_Cloak": 1, "RIGHTDASH": 2}, + ) with self.subTest("L - L"): self.cloak_test( ["Left_Mothwing_Cloak"], @@ -203,6 +195,12 @@ def testCollect_cloak_iterations(self): ) # RLL + with self.subTest("RLL"): + self.cloak_test( + ["Right_Mothwing_Cloak", "Left_Mothwing_Cloak", "Left_Mothwing_Cloak"], + [], + {"Left_Mothwing_Cloak": 2, "LEFTDASH": 2, "Right_Mothwing_Cloak": 1, "RIGHTDASH": 2}, + ) # with self.subTest("R - L"): # self.cloak_test( # ["Right_Mothwing_Cloak"], @@ -241,6 +239,12 @@ def testCollect_cloak_iterations(self): ) # RRL + with self.subTest("RRL"): + self.cloak_test( + ["Right_Mothwing_Cloak", "Right_Mothwing_Cloak", "Left_Mothwing_Cloak"], + [], + {"Left_Mothwing_Cloak": 1, "LEFTDASH": 2, "Right_Mothwing_Cloak": 2, "RIGHTDASH": 2}, + ) # with self.subTest("R - L"): # self.cloak_test( # ["Right_Mothwing_Cloak"], @@ -279,6 +283,12 @@ def testCollect_cloak_iterations(self): ) # RLR + with self.subTest("RLR"): + self.cloak_test( + ["Right_Mothwing_Cloak", "Left_Mothwing_Cloak", "Right_Mothwing_Cloak"], + [], + {"Left_Mothwing_Cloak": 1, "LEFTDASH": 2, "Right_Mothwing_Cloak": 2, "RIGHTDASH": 2}, + ) # with self.subTest("R - L"): # self.cloak_test( # ["Right_Mothwing_Cloak"], @@ -317,6 +327,12 @@ def testCollect_cloak_iterations(self): ) # LRR + with self.subTest("LRR"): + self.cloak_test( + ["Left_Mothwing_Cloak", "Right_Mothwing_Cloak", "Right_Mothwing_Cloak"], + [], + {"Left_Mothwing_Cloak": 1, "LEFTDASH": 2, "Right_Mothwing_Cloak": 2, "RIGHTDASH": 2}, + ) with self.subTest("L - L"): self.cloak_test( ["Left_Mothwing_Cloak"], @@ -370,6 +386,11 @@ def testCollect_cloak_iterations(self): # non-split with self.subTest("Bonus: non-split"): + self.cloak_test( + ["Mothwing_Cloak", "Shade_Cloak"], + [], + {"Mothwing_Cloak": 1, "Shade_Cloak": 1, "LEFTDASH": 2, "RIGHTDASH": 2}, + ) self.cloak_test( ["Mothwing_Cloak", "Shade_Cloak"], ["Mothwing_Cloak"],