From bca035172c463e6ac4aaf2591d7d4af2da51c522 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 18 Jun 2021 11:59:05 +0200 Subject: Join semantics --- tests/typ/code/while.typ | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests/typ/code/while.typ') diff --git a/tests/typ/code/while.typ b/tests/typ/code/while.typ index e55f8f10..306c1e45 100644 --- a/tests/typ/code/while.typ +++ b/tests/typ/code/while.typ @@ -23,8 +23,10 @@ // Value of while loops. // Ref: false -#test(type(while false {}), "template") -#test(type(while false []), "template") +#test(while false {}, none) + +#let i = 0 +#test(type(while i < 1 [{ i += 1 }]), "template") --- // Ref: false @@ -37,13 +39,13 @@ // Error: 8-15 unknown variable #while nothing {} -// A single error stops iteration. +// Errors taint everything. #let i = 0 #test(error, while i < 10 { i += 1 if i < 5 [nope] else { error } }) -#test(i, 5) +#test(i, 10) --- // Error: 7 expected expression -- cgit v1.2.3