sim:expect
Assert that a condition is true.
Smart blocks: build-time inputs only. Simulation expectations inspect executed receipts at build time.
Syntax
Section titled “Syntax”sim:expect <condition>Arguments
Section titled “Arguments”| Name | Type | Evaluation | Description |
|---|---|---|---|
condition | bool | Build time | Boolean condition to assert |
Examples
Section titled “Examples”# Assert a simple conditionsim:expect true
# Assert with variablesset $a 42sim:expect @bool($a == 42)- If the condition is false, the script halts with an assertion error
- Typically used inside
sim:forkblocks to verify simulated outcomes