update actor doc and add more actor based tests

This commit is contained in:
2026-02-17 11:50:46 -06:00
parent 2d054fcf21
commit 2be2b15a61
21 changed files with 268 additions and 51 deletions

13
tests/actor_start.ce Normal file
View File

@@ -0,0 +1,13 @@
// Test: $start lifecycle events (greet and stop)
var got_greet = false
$start(function(event) {
if (event.type == 'greet') {
if (!event.actor) disrupt
if (!is_actor(event.actor)) disrupt
got_greet = true
}
if (event.type == 'stop') {
if (!got_greet) disrupt
$stop()
}
}, 'tests/actor_helper_stop')