diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-18 18:40:52 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-18 18:41:00 -0700 |
| commit | 6d8d617774b064dce4cc230f5e10027c58790c2d (patch) | |
| tree | 1c142c3829d09ffb60b704cf144bb3345a343ca1 | |
| parent | 7f98262dfa92072fbfac785617a6dd364cc0146b (diff) | |
Added test for multiple labels.
| -rw-r--r-- | tests/control_flow.nom | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/control_flow.nom b/tests/control_flow.nom index 56c99a0..939d5ee 100644 --- a/tests/control_flow.nom +++ b/tests/control_flow.nom @@ -115,6 +115,12 @@ for %key = %value in {x:1,y:2} stop %value barf "stopping value failed" +for %key = %value in {x:1} + stop %key + stop %value + do next %key + do next %value + for %key = %value in {x:1,y:2} do next %key barf "skipping key failed" |
