We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cff9ea commit fe95a41Copy full SHA for fe95a41
1 file changed
src/test/skript/tests/misc/expression sections.sk
@@ -1,4 +1,17 @@
1
test "expression sections":
2
+ set {_var} to false
3
set {_runnable} to a new runnable:
- broadcast "HELLO THERE"
4
+ set {_var} to true
5
+ assert {_var} is false with "expression section ran too early!"
6
run {_runnable}
7
+ assert {_var} is true with "expression section didn't run!"
8
+
9
+test "expression sections that don't work":
10
+ parse:
11
+ set {_var} to true:
12
+ broadcast "NO BAD"
13
+ assert last parse logs is set with "section was allowed with no header"
14
15
+ set {_list::*} to a new runnable, a new runnable and a new runnable:
16
17
+ assert last parse logs is set with "section was allowed with multiple headers"
0 commit comments