Skip to content

Commit

Permalink
test.15.replicode: Use mk.val instead of Ping.
Browse files Browse the repository at this point in the history
  • Loading branch information
jefft0 committed Jan 19, 2022
1 parent 33090f2 commit e302b71
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions AERA/replicode_v1.2/test.15.replicode
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
;to check: a pgm that catches the "beep".
;use of dcy_auto to restart decay automatically after dcy_prd expires.

x:(ent 1) [[SYNC_ONCE now 1 forever root nil]]

target_grp:(grp
1; upr
0.9; sln_thr
Expand Down Expand Up @@ -48,7 +50,7 @@ hb:(pgm
|[]
[]
(inj []
(Ping "beep" 1)
(mk.val x spoken "beep" 1)
[SYNC_ONCE now 1 forever target_grp nil]
)
1; propagation saliency threshold
Expand All @@ -62,10 +64,10 @@ ihb:(ipgm hb |[] RUN_ALWAYS 200ms VOLATILE SILENT 1)
monitor:(pgm
|[]
[]
(ptn (Ping "beep" ::) |[])
(ptn (mk.val x spoken "beep" ::) |[])
|[]
[]
(inj [(Ping "caught beep" 1) [SYNC_ONCE now 1 forever target_grp nil]])
(inj [(mk.val x spoken "caught beep" 1) [SYNC_ONCE now 1 forever target_grp nil]])
1
)
|[]
Expand Down

0 comments on commit e302b71

Please sign in to comment.