Skip to content

Commit

Permalink
add loop test
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Nov 1, 2018
1 parent bc9a978 commit 2c9e04b
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Tests/dsl/good/UnitTestOK028_loops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,30 @@
identifier: reference:loopindex2
test:
equals: "2.2"

-
type: loop
over: { "hello": world, "buongiorno": mondo }
steps:
-
type: reference
mode: set
identifier: loopindex
value: "[loop:key] => [loop:value]"
overwrite: true
-
type: loop
repeat: 2
steps:
-
type: reference
mode: set
identifier: loopindex2
value: "[loop:iteration]. [reference:loopindex]"
overwrite: true
-
type: assert
target: reference
identifier: reference:loopindex2
test:
equals: "2. buongiorno => mondo"

0 comments on commit 2c9e04b

Please sign in to comment.