Files
Aurora.3/code/unit_tests/chemistry_tests.dm
harryob 578bae6f6f no relative pathing (#16234)
* the voices win in the end

* cleanup

* changelog

* secure.dm hates me

* make_exact_fit() in initialize instead of whatever was happening before
2023-04-30 21:10:13 +00:00

27 lines
731 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"
/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