Skip to content

Commit

Permalink
add collect tests for full cloak
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Oct 2, 2024
1 parent 01a4c56 commit dbdf996
Showing 1 changed file with 41 additions and 20 deletions.
61 changes: 41 additions & 20 deletions worlds/hk/test/test_collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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"],
Expand Down Expand Up @@ -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"],
Expand Down Expand Up @@ -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"],
Expand Down Expand Up @@ -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"],
Expand Down Expand Up @@ -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"],
Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit dbdf996

Please sign in to comment.