Thanks, Nexela for the work on the World simulator and pointing me in the right direction with opened spec test cases.
Created the test cases for important and prominent areas in the module.
Three test scenarios were core to stdlib.event.opened:
Test that global._opened_guis initializes on Event.core_events.init_and_config.
Test that raise_opened_closed_events & create_globals successfully register to their respective events.
Test that all fourscript.raise_event calls get called under their respective conditions AND that we receive the correct event data table in the registered handlers when the events are raised.
Please feel free to leave any comments for any issues with the code or if you find anything that I missed or if you think certain parts need any refactoring.
@Nexela @Afforess
Thanks, Nexela for the work on the World simulator and pointing me in the right direction with opened spec test cases.
Created the test cases for important and prominent areas in the module.
Three test scenarios were core to
stdlib.event.opened
:global._opened_guis
initializes onEvent.core_events.init_and_config
.raise_opened_closed_events
&create_globals
successfully register to their respective events.script.raise_event
calls get called under their respective conditions AND that we receive the correctevent data
table in the registered handlers when the events are raised.Please feel free to leave any comments for any issues with the code or if you find anything that I missed or if you think certain parts need any refactoring.