Files
OpenSS13/Code/Test.dm
2008-05-23 17:36:21 +00:00

24 lines
452 B
Plaintext

/proc/dd_run_tests()
var/test_classes = typesof(/obj/test)
for(var/class in test_classes)
var/obj/test/tester = new class( )
for(var/test in tester.verbs)
call(tester, test)()
if (!( tester.success ))
else
//Foreach continue //goto(59)
if (!( tester.success ))
world << "Test failed."
return
//Foreach goto(26)
world << "All tests passed."
return
/obj/test/proc/die(message)
src.success = 0
CRASH(message)
return