-
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loop behaviour from super call. (#7537)
* Fix loop behaviour from super call. * Update src/test/skript/tests/syntaxes/expressions/ExprQueue.sk
- Loading branch information
Showing
5 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using for each loops | ||
|
||
test "for each loops ending (start)": | ||
clear {7536 For Each::*} | ||
for each {_word} in ("test", "test2"): | ||
add {_word} to {7536 For Each::*} | ||
for each {_word 2} in ("example", "example2"): | ||
add {_word 2} to {7536 For Each::*} | ||
|
||
assert the size of {7536 For Each::*} is 6 with "Wrong number of variables: %{7536 For Each::*}%" | ||
|
||
# Need to make sure that trigger didn't just die | ||
test "for each loops ending (result)": | ||
assert the size of {7536 For Each::*} is 6 with "Wrong number of variables: %{7536 For Each::*}%" | ||
assert {7536 For Each::*} is ("test", "example", "example2", "test2", "example", "example2") with "Wrong loop order: %{7536 For Each::*}%" | ||
|
||
delete {7536 For Each::*} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters