Files
Aurora.3/code/unit_tests/chemistry_tests.dm
Fluffy 8cf49025ae CI improvements (#17632)
* 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
2023-11-13 21:25:33 +01:00

28 lines
770 B
Plaintext

/*
*
* Specific Heat Chemistry Test
* Checks if a reagent has a specific heat value.
*
*/
/datum/unit_test/specific_heat
name = "Chemistry Test - Specific Heat"
groups = list("generic", "chemistry")
/datum/unit_test/specific_heat/start_test()
var/error_count = 0
for(var/reagent in GET_SINGLETON_SUBTYPE_MAP(/singleton/reagent/))
var/singleton/reagent/R = reagent
if(!SSchemistry.has_valid_specific_heat(R))
TEST_FAIL("[reagent] lacks a proper specific heat value!")
error_count++
if(error_count)
TEST_FAIL("[error_count] reagents(s) found without a proper specific heat value. Assign a specific heat value or make a recipe with these reagents as the final product.")
else
TEST_PASS("All reagents have a specific heat value.")
return 1