Adds some unit tests for reactions.

This commit is contained in:
Putnam
2020-09-09 22:23:31 -07:00
parent 67000cd182
commit 697723c027
2 changed files with 144 additions and 0 deletions

View 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]")