summaryrefslogtreecommitdiffhomepage
path: root/tests/00_syntax/16_for_loop
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-10 18:37:24 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-10 18:37:24 +0200
commit9ea4368ff1e4842286e0e7a6aec58a2c2c799d5b (patch)
tree47d31fa6d686dd50220edfa505fcc21ce6c860fe /tests/00_syntax/16_for_loop
parent39164c57d893b02f9a253c661abc2459bcd57e5c (diff)
treewide: implement default lstrip_blocks and trim_blocks behaviour
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/00_syntax/16_for_loop')
-rw-r--r--tests/00_syntax/16_for_loop9
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/00_syntax/16_for_loop b/tests/00_syntax/16_for_loop
index 61e86a1..4c233bc 100644
--- a/tests/00_syntax/16_for_loop
+++ b/tests/00_syntax/16_for_loop
@@ -20,7 +20,6 @@ Iteration 7
Iteration 8
Iteration 9
-
If the loop body consists of only one statement, the curly braces
may be omitted:
Iteration 0
@@ -34,7 +33,6 @@ Iteration 7
Iteration 8
Iteration 9
-
Any of the init-, test- and increment expressions may be omitted.
Loop without initialization statement:
@@ -42,30 +40,25 @@ Iteration null
Iteration 1
Iteration 2
-
Loop without test statement:
Iteration 0
Iteration 1
Iteration 2
-
Loop without init-, test- or increment statement:
Iteration 1
Iteration 2
Iteration 3
-
For-in loop enumerating object properties:
Key: foo
Key: bar
-
For-in loop enumerating array items:
Item: one
Item: two
Item: three
-
A counting for-loop using the alternative syntax:
Iteration 0
Iteration 1
@@ -78,12 +71,10 @@ Iteration 7
Iteration 8
Iteration 9
-
A for-in loop using the alternative syntax:
Item 123
Item 456
Item 789
-
-- End --
-- Testcase --