mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 01:22:13 +00:00
* the voices win in the end * cleanup * changelog * secure.dm hates me * make_exact_fit() in initialize instead of whatever was happening before
27 lines
731 B
Plaintext
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
|