2023-02-26 09:48:41 +01:00
|
|
|
import unittest
|
|
|
|
|
from worlds import subnautica
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SubnauticaTest(unittest.TestCase):
|
|
|
|
|
# This is an assumption in the mod side
|
|
|
|
|
scancutoff: int = 33999
|
|
|
|
|
|
|
|
|
|
def testIDRange(self):
|
2023-02-26 09:51:02 +01:00
|
|
|
for name, id in subnautica.SubnauticaWorld.location_name_to_id.items():
|
2023-02-26 09:48:41 +01:00
|
|
|
with self.subTest(item=name):
|
|
|
|
|
if "Scan" in name:
|
|
|
|
|
self.assertLess(self.scancutoff, id)
|
2023-02-26 09:51:02 +01:00
|
|
|
else:
|
|
|
|
|
self.assertGreater(self.scancutoff, id)
|