mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 16:12:19 +00:00
* Initial experiment * holy shit the pain of this rabbit hole * F * F * F * F * FFF * FFFF * FFFFFFFFF * FFFFFFFFFF * FF * ffffff * ffffffff * F^F * FFFFFF * F * Robusted * F * Some readability, hopefully * Fear * Aurora was a mistake * Horrors beyond our comprehension * Use the appropriate macro across the tests * Brah * FF * Mute janitors robusting the ling * Frail doctors revealing to be more trained than a KGB sleeper agent when the crew armory opens * FFFFFFF * gujbjh * Shitcode, shitcode everywhere * Pain * Cursed codebase * Fix AI mask qdel, SQL tests to macro * Attempt at github grouping * Take two * Brah * Maybe this looks better * Different formatting * FFS * Visuals * pain * FFFFF * hyuh * fgdsgd * igyguybujgb * Just calling the parent here * dsfs * fdsaf * Move more pieces to use the macros * Finish moving to macro * gah * Changelog, some touchups * Fix another found runtime * GDI
37 lines
1.5 KiB
Plaintext
37 lines
1.5 KiB
Plaintext
/datum/unit_test/shuttle_landmarks_shall_exist
|
|
name = "SHUTTLE: Defined shuttle landmarks shall exist."
|
|
|
|
/datum/unit_test/shuttle_landmarks_shall_exist/start_test()
|
|
var/failed = 0
|
|
|
|
for(var/A in subtypesof(/datum/shuttle/autodock))
|
|
var/datum/shuttle/autodock/shuttle = A
|
|
// Check start location and transition locations exist
|
|
var/found_current_location = FALSE
|
|
var/found_transition_location = FALSE
|
|
var/found_logging_home_location = FALSE
|
|
for(var/L in subtypesof(/obj/effect/shuttle_landmark))
|
|
var/obj/effect/shuttle_landmark/landmark = L
|
|
if(initial(landmark.landmark_tag) == initial(shuttle.current_location))
|
|
found_current_location = TRUE
|
|
if(initial(landmark.landmark_tag) == initial(shuttle.landmark_transition))
|
|
found_transition_location = TRUE
|
|
if(initial(landmark.landmark_tag) == initial(shuttle.logging_home_tag))
|
|
found_logging_home_location = TRUE
|
|
|
|
if(initial(shuttle.current_location) && !found_current_location)
|
|
TEST_FAIL("Failed to find 'current_location' landmark for [shuttle].")
|
|
failed++
|
|
if(initial(shuttle.landmark_transition) && !found_transition_location)
|
|
TEST_FAIL("Failed to find 'landmark_transition' landmark for [shuttle].")
|
|
failed++
|
|
if(initial(shuttle.logging_home_tag) && !found_logging_home_location)
|
|
TEST_FAIL("Failed to find 'logging_home_tag' landmark for [shuttle].")
|
|
failed++
|
|
|
|
if(failed)
|
|
TEST_FAIL("[failed] shuttle transition and start location landmarks were not found.")
|
|
else
|
|
TEST_PASS("All shuttle transition and start location landmarks were found.")
|
|
return TRUE
|