mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-03-21 03:02:57 +00:00
* these need to be vars apparently * testing * spawn construct * macro fix * as anything * allow null... * consistency
12 lines
546 B
Plaintext
12 lines
546 B
Plaintext
/datum/unit_test/mech_construction/Run()
|
|
var/failed = FALSE
|
|
for(var/datum/construction/C as anything in subtypesof(/datum/construction))
|
|
// We check for null, as null is legal here... For now... Mech construction needs a full refactor to make them unittest-able in a not ugly way.
|
|
if(!C.result)
|
|
continue
|
|
if(!ispath(C.result))
|
|
TEST_NOTICE(src, "[C.type]: Mech Construction - Had invalid result \"[C.result]\", must be a path.")
|
|
failed = TRUE
|
|
if(failed)
|
|
TEST_FAIL("Mech Construction - A construction datum had incorrect data.")
|