mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
13 lines
492 B
Plaintext
13 lines
492 B
Plaintext
/datum/unit_test/component_duping/Run()
|
|
var/list/bad_dms = list()
|
|
var/list/bad_dts = list()
|
|
for(var/t in typesof(/datum/component))
|
|
var/datum/component/comp = t
|
|
if(!isnum(initial(comp.dupe_mode)))
|
|
bad_dms += t
|
|
var/dupe_type = initial(comp.dupe_type)
|
|
if(dupe_type && !ispath(dupe_type))
|
|
bad_dts += t
|
|
TEST_ASSERT(!length(bad_dms) && !length(bad_dts),
|
|
"Components with invalid dupe modes: ([bad_dms.Join(",")]) ||| Components with invalid dupe types: ([bad_dts.Join(",")])")
|