From: Christopher Allan Webber Date: Mon, 12 Dec 2016 15:09:52 +0000 (-0600) Subject: tests: Update test-actors to use msg-recieve instead of =>. X-Git-Tag: v0.3.0~18 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=fa0943293ac36efeb2d718f856bd7445c5667ff2;p=8sync.git tests: Update test-actors to use msg-recieve instead of =>. It feels like msg-recieve is an easier to read name, and looks less like a structure used elsewhere (the way => is used in cond). * tests/test-actors.scm: Update to switch => to msg-recieve. --- diff --git a/tests/test-actors.scm b/tests/test-actors.scm index 0a09adb..3fc69c4 100644 --- a/tests/test-actors.scm +++ b/tests/test-actors.scm @@ -79,13 +79,13 @@ (define* (antsy-caller-pester-rep actor message #:key who-to-call) (~display "customer> I'm calling customer service about this!\n") - (=> (first-reply #:key msg) + (msg-recieve (first-reply #:key msg) (<-wait actor who-to-call 'field-call) (if (message-auto-reply? first-reply) (~display "customer> Whaaaaat? I can't believe I got voice mail!\n") (begin (~format "*customer hears*: ~a\n" msg) - (=> (second-reply #:key *auto-reply*) + (msg-recieve (second-reply #:key *auto-reply*) (<-reply-wait actor first-reply #:msg "Yes, it didn't work, I'm VERY ANGRY!") (if (message-auto-reply? second-reply) @@ -97,7 +97,7 @@ (define (rep-field-call actor message) (~display "good-rep> Hm, another call from a customer...\n") - (=> (reply #:key msg) + (msg-recieve (reply #:key msg) (<-reply-wait actor message #:msg "Have you tried turning it off and on?")