Skip to content

Commit

Permalink
add test messages
Browse files Browse the repository at this point in the history
  • Loading branch information
threeandthreee committed Sep 16, 2024
1 parent 065d2f4 commit ea2f91e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions worlds/ladx/test/TestDungeonLogic.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ def test_keylogic(self):
location_1 = "Tile Room Key (Face Shrine)"
location_2 = "Top Right Horse Heads Chest (Face Shrine)"
location_3 = "Pot Locked Chest (Face Shrine)"
self.assertFalse(self.can_reach_location(location_1))
self.assertFalse(self.can_reach_location(location_2))
self.assertFalse(self.can_reach_location(location_3))
self.assertFalse(self.can_reach_location(location_1), "Tile Room Key, 0 keys")
self.assertFalse(self.can_reach_location(location_2), "Top Right Horse Heads Chest, 0 keys")
self.assertFalse(self.can_reach_location(location_3), "Pot Locked Chest, 0 keys")
self.collect(keys[0])
self.assertTrue(self.can_reach_location(location_1))
self.assertFalse(self.can_reach_location(location_2))
self.assertFalse(self.can_reach_location(location_3))
self.assertTrue(self.can_reach_location(location_1), "Tile Room Key, 1 key")
self.assertFalse(self.can_reach_location(location_2), "Top Right Horse Heads Chest, 1 key")
self.assertFalse(self.can_reach_location(location_3), "Pot Locked Chest, 1 key")
self.collect(keys[1])
self.assertTrue(self.can_reach_location(location_1))
self.assertTrue(self.can_reach_location(location_2))
self.assertFalse(self.can_reach_location(location_3))
self.assertTrue(self.can_reach_location(location_1), "Tile Room Key, 2 keys")
self.assertTrue(self.can_reach_location(location_2), "Top Right Horse Heads Chest, 2 keys")
self.assertFalse(self.can_reach_location(location_3), "Pot Locked Chest, 2 keys")
self.collect(keys[2])
self.assertTrue(self.can_reach_location(location_1))
self.assertTrue(self.can_reach_location(location_2))
self.assertTrue(self.can_reach_location(location_3))
self.assertTrue(self.can_reach_location(location_1), "Tile Room Key, 3 keys")
self.assertTrue(self.can_reach_location(location_2), "Top Right Horse Heads Chest, 3 keys")
self.assertTrue(self.can_reach_location(location_3), "Pot Locked Chest, 3 keys")

0 comments on commit ea2f91e

Please sign in to comment.