mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-30 12:02:24 +00:00
* the boulder must be pushed * awk? * sadfasdf * sadf * sadfsda * asdf * sdfasafd * asdfsad * asdf * dsfafa * despair * sadfsda * sdfsadf * 1589 * sdaf * sadfasd * asdf * safsadf * fdsafsa * add create and destroy * fdsa * sdafasfsda * pods for away sites * oopsie * hgdfs * i am speed * sdafas * hopefully this works first trAHAHAHAH * asdf * dfsadasf * sfasdf * 6461 * dsfasfd * sfda * fsd * sdfas * fsdaf * sadf * safasf * sudo * sadfsad * dfsdf
28 lines
833 B
Plaintext
28 lines
833 B
Plaintext
/datum/unit_test/species
|
|
name = "SPECIES template"
|
|
groups = list("generic")
|
|
|
|
/datum/unit_test/species/injection_mod
|
|
name = "SPECIES: All species shall have a valid injection_mod"
|
|
|
|
// Check that injection_mod is larger than 0. 0 injection_mod is indistinguishable from a failed injection, and a negative injection_mod is meaningless.
|
|
/datum/unit_test/species/injection_mod/start_test()
|
|
var/list/failed_species = list()
|
|
|
|
for(var/S in typesof(/datum/species))
|
|
var/datum/species/species = S
|
|
|
|
if(initial(species.injection_mod) > 0)
|
|
continue
|
|
else
|
|
failed_species |= species.type
|
|
|
|
if(failed_species.len)
|
|
for(var/fail in failed_species)
|
|
TEST_FAIL("SPECIES: Invalid injection_mod var set on species: [english_list(failed_species)]")
|
|
else
|
|
TEST_PASS("SPECIES: All species had valid injection_mod vars set.")
|
|
|
|
|
|
return 1
|