From d4c4eaf240dc72362fc20f635cb311354ba73f2f Mon Sep 17 00:00:00 2001 From: Fluffy <65877598+FluffyGhoster@users.noreply.github.com> Date: Wed, 16 Oct 2024 23:38:45 +0200 Subject: [PATCH] bruh --- aurorastation.dme | 2 +- code/unit_tests/area_configuration_tests.dm | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/aurorastation.dme b/aurorastation.dme index 3ca844705e5..115528c87c6 100644 --- a/aurorastation.dme +++ b/aurorastation.dme @@ -3737,7 +3737,7 @@ #include "code\modules\world_api\commands\tickets.dm" #include "code\modules\xgm\xgm_gas_data.dm" #include "code\modules\xgm\xgm_gas_mixture.dm" -#include "code\unit_tests\area_configuration_tests.dm " +#include "code\unit_tests\area_configuration_tests.dm" #include "code\unit_tests\chemistry_tests.dm" #include "code\unit_tests\cooking_tests.dm" #include "code\unit_tests\create_and_destroy.dm" diff --git a/code/unit_tests/area_configuration_tests.dm b/code/unit_tests/area_configuration_tests.dm index 0a976d1fad7..0cceef3e29f 100644 --- a/code/unit_tests/area_configuration_tests.dm +++ b/code/unit_tests/area_configuration_tests.dm @@ -9,13 +9,20 @@ ABSTRACT_TYPE(/datum/unit_test/area_configuration) /datum/unit_test/area_configuration/exoplanet_area_with_exoplanet_base_turfs/start_test() var/test_status = UNIT_TEST_PASSED - for(var/exoplanet_area_typepath in subtypesof(/area/exoplanet)) + for(var/area/exoplanet/exoplanet_area_typepath in subtypesof(/area/exoplanet)) //No need for abstract areas to respect this really if(is_abstract(exoplanet_area_typepath)) + TEST_DEBUG("Skipping abstract exoplanet area [exoplanet_area_typepath]") continue + TEST_DEBUG("Now testing exoplanet area [exoplanet_area_typepath]") + //The bounds have to be set based on the direction of the stairs, that must be set in code for sanity if(!istype(exoplanet_area_typepath::base_turf, /turf/simulated/floor/exoplanet)) test_status = TEST_FAIL("The exoplanet area [exoplanet_area_typepath] does not have an exoplanet base turf!") + else + TEST_NOTICE("The exoplanet area [exoplanet_area_typepath] has an exoplanet base turf.") + TEST_DEBUG("The exoplanet area [exoplanet_area_typepath] has [exoplanet_area_typepath::base_turf] as its base turf.") + return test_status