Files
Paradise/code/tests/test_map_templates.dm
warriorstar-orion bb60a027bf unit->game tests, /tg/ assertions and allocations (#27646)
* unit->game tests, /tg/ assertions and allocations

* whoopsies

* fix lint
2024-12-21 21:19:33 +00:00

12 lines
542 B
Plaintext

/datum/game_test/map_templates/Run()
var/list/datum/map_template/templates = subtypesof(/datum/map_template)
for(var/I in templates)
var/datum/map_template/MT = new I // The new is important here to ensure stuff gets set properly
if(MT.ci_exclude == MT.type)
continue
// Check if it even has a path and if so, does it exist
if(MT.mappath && !fexists(MT.mappath))
TEST_FAIL("The map file for [MT.type] does not exist!")
if(MT.mappath && !findtext(MT.mappath, ".dmm"))
TEST_FAIL("The map file for [MT.type] is not a map!")