mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
12 lines
575 B
Plaintext
12 lines
575 B
Plaintext
/datum/unit_test/initialize_sanity/Run()
|
|
if(length(SSatoms.BadInitializeCalls))
|
|
Fail("Bad Initialize() calls detected. Please read logs.")
|
|
var/list/init_failures_to_text = list(
|
|
"[BAD_INIT_QDEL_BEFORE]" = "Qdeleted Before Initialized",
|
|
"[BAD_INIT_DIDNT_INIT]" = "Did Not Initialize",
|
|
"[BAD_INIT_SLEPT]" = "Initialize() Slept",
|
|
"[BAD_INIT_NO_HINT]" = "No Initialize() Hint Returned",
|
|
)
|
|
for(var/failure in SSatoms.BadInitializeCalls)
|
|
log_world("[failure]: [init_failures_to_text["[SSatoms.BadInitializeCalls[failure]]"]]") // You like stacked brackets?
|