X-Git-Url: https://jxself.org/git/?p=8sync.git;a=blobdiff_plain;f=tests%2Ftest-actors.scm;fp=tests%2Ftest-actors.scm;h=0de89611110bba84b2c18246d0f14ce596a7024c;hp=68a05bf13a1b3c668f5c76430862fd06fe6410b1;hb=a5c16530d2e253c0d56143c5337740b1f7a403ed;hpb=f0863bf36133288ed55eb97a3732d581be45c231 diff --git a/tests/test-actors.scm b/tests/test-actors.scm index 68a05bf..0de8961 100644 --- a/tests/test-actors.scm +++ b/tests/test-actors.scm @@ -139,5 +139,18 @@ lazy-rep> I'm not answering that. customer> Whaaaaat? I can't believe I got voice mail!\n" displayed-text)))) +(define-simple-actor + (*cleanup* test-call-cleanup)) + +(define (test-call-cleanup actor message) + (speak "Hey, I'm cleanin' up here!\n")) + +(with-fresh-speaker + (let ((hive (make-hive))) + (hive-create-actor hive ) + (run-hive hive '())) + (test-equal '("Hey, I'm cleanin' up here!\n") + (get-spoken))) + (test-end "test-actors") (test-exit)