summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-13 16:39:41 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-13 16:39:41 +0200
commit1df621868fda1aae193405057f69c3187debbae2 (patch)
tree798d212e8021140cc11af956210f60fa97b76ba2 /tests
parent05c27a581ece00e27c16be3d9ac69f3eefedcd4b (diff)
Fix control flow bug
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/code/break-continue.pngbin5885 -> 7268 bytes
-rw-r--r--tests/typ/code/break-continue.typ11
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/ref/code/break-continue.png b/tests/ref/code/break-continue.png
index 848f4fa6..401b3940 100644
--- a/tests/ref/code/break-continue.png
+++ b/tests/ref/code/break-continue.png
Binary files differ
diff --git a/tests/typ/code/break-continue.typ b/tests/typ/code/break-continue.typ
index 02c221a4..2415cb8f 100644
--- a/tests/typ/code/break-continue.typ
+++ b/tests/typ/code/break-continue.typ
@@ -134,3 +134,14 @@
set text(blue, ..break)
[Not happening]
}
+
+---
+// Test second block during break flow.
+// Ref: true
+
+#for i in range(10) {
+ table(
+ { [A]; break },
+ for _ in range(3) [B]
+ )
+}