mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-25 10:53:25 -07:00
30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
from ..test import JakAndDaxterTestBase
|
|
|
|
|
|
class ReorderedCellCountsTest(JakAndDaxterTestBase):
|
|
options = {
|
|
"enable_ordered_cell_counts": True,
|
|
"fire_canyon_cell_count": 20,
|
|
"mountain_pass_cell_count": 15,
|
|
"lava_tube_cell_count": 10,
|
|
}
|
|
|
|
def test_reordered_cell_counts(self):
|
|
self.world.generate_early()
|
|
self.assertLessEqual(self.world.options.fire_canyon_cell_count, self.world.options.mountain_pass_cell_count)
|
|
self.assertLessEqual(self.world.options.mountain_pass_cell_count, self.world.options.lava_tube_cell_count)
|
|
|
|
|
|
class UnorderedCellCountsTest(JakAndDaxterTestBase):
|
|
options = {
|
|
"enable_ordered_cell_counts": False,
|
|
"fire_canyon_cell_count": 20,
|
|
"mountain_pass_cell_count": 15,
|
|
"lava_tube_cell_count": 10,
|
|
}
|
|
|
|
def test_unordered_cell_counts(self):
|
|
self.world.generate_early()
|
|
self.assertGreaterEqual(self.world.options.fire_canyon_cell_count, self.world.options.mountain_pass_cell_count)
|
|
self.assertGreaterEqual(self.world.options.mountain_pass_cell_count, self.world.options.lava_tube_cell_count)
|