Adds some unit tests for reactions.
This commit is contained in:
6
code/modules/unit_tests/reactions.dm
Normal file
6
code/modules/unit_tests/reactions.dm
Normal file
@@ -0,0 +1,6 @@
|
||||
/datum/unit_test/reactions/Run()
|
||||
for(var/datum/gas_reaction/G in SSair.gas_reactions)
|
||||
var/test_info = G.test()
|
||||
if(!test_info["success"])
|
||||
var/message = test_info["message"]
|
||||
Fail("Gas reaction [G.name] is failing its unit test with the following message: [message]")
|
||||
Reference in New Issue
Block a user