Some debug logging

This commit is contained in:
Jordan Dominion
2024-02-20 09:02:20 -05:00
parent 8bfccae678
commit 054c72cc1d
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -15,10 +15,12 @@
sleep(50)
world.TgsTargetedChatBroadcast("Sample admin-only message", TRUE)
world.log << "params check"
var/list/world_params = world.params
if(!("test" in world_params) || world_params["test"] != "bababooey")
FailTest("Expected parameter test=bababooey but did not receive", "test_fail_reason.txt")
world.log << "file check 1"
fdel("test_event_output.txt")
var/test_data = "nwfiuurhfu"
world.TgsTriggerEvent("test_event", list(test_data), TRUE)
@@ -29,6 +31,7 @@
if(test_contents != test_data)
FailTest("Expected test_event_output.txt to contain [test_data] here. Got [test_contents]", "test_fail_reason.txt")
world.log << "file check 1"
fdel("test_event_output.txt")
world.TgsTriggerEvent("test_event", list("asdf"), FALSE)
if(fexists("test_event_output.txt"))