#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' )
Given this fixture
Locate to-do item:
| on object | alias result as | perform | on member | |
|---|---|---|---|---|
| toDoItems | listOfItemsBefore | invoke action | not yet done | ok |
... and then alias the 'Buy milk' item in the returned listOfItemsBefore as buyMilkItem; ok.
Confirm to-do item is not done:
| on object | alias result as | perform | on member | that it | value | |
|---|---|---|---|---|---|---|
| buyMilkItem | check property | Done | is | False | ok |
Mark as done
| on object | alias result as | perform | on member | |
|---|---|---|---|---|
| buyMilkItem | invoke action | mark as done | ok |
Confirm item is done...
| on object | alias result as | perform | on member | that it | value | |
|---|---|---|---|---|---|---|
| buyMilkItem | check property | Done | is | True | ok |
... and that when the list of items is obtained again...
| on object | alias result as | perform | on member | |
|---|---|---|---|---|
| toDoItems | listOfItemsAfter | invoke action | not yet done | ok |
... then the buyMilkItem is no longer in that list (listOfItemsAfter); ok.