diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-05-17 14:27:59 +0200 |
| commit | e039552f9d7bb49da8dafe7a83b87a08202eb30f (patch) | |
| tree | 264b461722f758d85217da804550620cd74b4f9e /tests/typ/compiler/while.typ | |
| parent | 8e025c9cdfbb0a5dae536aafc27b5e19eeac1810 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/compiler/while.typ')
| -rw-r--r-- | tests/typ/compiler/while.typ | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/tests/typ/compiler/while.typ b/tests/typ/compiler/while.typ deleted file mode 100644 index 56409c6e..00000000 --- a/tests/typ/compiler/while.typ +++ /dev/null @@ -1,60 +0,0 @@ -// Test while expressions. - ---- -// Should output `2 4 6 8 10`. -#let i = 0 -#while i < 10 [ - #(i += 2) - #i -] - -// Should output `Hi`. -#let iter = true -#while iter { - iter = false - "Hi." -} - -#while false { - dont-care -} - ---- -// Value of while loops. -// Ref: false - -#test(while false {}, none) - -#let i = 0 -#test(type(while i < 1 [#(i += 1)]), content) - ---- -// Condition must be boolean. -// Error: 8-14 expected boolean, found content -#while [nope] [nope] - ---- -// Error: 8-25 condition is always true -#while 2 < "hello".len() {} - ---- -// Error: 2:2-2:24 loop seems to be infinite -#let i = 1 -#while i > 0 { i += 1 } - ---- -// Error: 7 expected expression -#while - -// Error: 8 expected expression -#{while} - -// Error: 9 expected block -#while x - -// Error: 7 expected expression -#while -x {} - -// Error: 9 expected block -#while x something |
