Lights story example Pub   Share

Sample story: we pretend that a guest arrives and we expect the lights to be turned on:

send::  msg home.guest_arrived  (name="Jane")

expect::  lights.on

More specifically, we create an input message home.guest_arrived and then test for lights.on. Click on the fiddle button to see it in action!


Was this useful?  

By: Razie | 2018-03-11 | Tags: story , dsl


Viewed 310 times ( | History | Print ) this page.

You need to log in to post a comment!