From 6d8d617774b064dce4cc230f5e10027c58790c2d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 18 Jun 2018 18:40:52 -0700 Subject: [PATCH] Added test for multiple labels. --- tests/control_flow.nom | 6 ++++++ 1 file changed, 6 insertions(+) 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"