Skip to content

Commit

Permalink
Update src/test/skript/tests/syntaxes/expressions/ExprItemsIn.sk
Browse files Browse the repository at this point in the history
Co-authored-by: sovdee <[email protected]>
  • Loading branch information
Moderocky and sovdeeth authored May 1, 2024
1 parent 8ee1711 commit 067612b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/test/skript/tests/syntaxes/expressions/ExprItemsIn.sk
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ test "items in (inventory)":
else:
assert true is false with "unexpected item in the inventory area: %loop-value%"
set {_list::*} to items in {_inventory}
assert size of {_list::*} is 4 with "size of items in failed: %size of {_list::*}%"
assert {_list::1} is stone with "first item failed: %{_list::1}%"
assert {_list::2} is stone named "bread" with "second item failed: %{_list::2}%"
assert {_list::3} is 64 of iron ingot with "third item failed: %{_list::3}%"
assert {_list::4} is 36 of iron ingot with "split fourth item failed: %{_list::4}%"
assert size of {_list::*} is 4 with "size of items in failed"
assert {_list::1} is stone with "first item failed"
assert {_list::2} is stone named "bread" with "second item failed"
assert {_list::3} is 64 of iron ingot with "third item failed"
assert {_list::4} is 36 of iron ingot with "split fourth item failed"
remove stone from {_inventory}
set {_list::*} to items in {_inventory}
assert size of {_list::*} is 3 with "size of second items in failed: %size of {_list::*}%"
assert {_list::1} is stone named "bread" with "new first item failed: %{_list::1}%"
assert {_list::2} is 64 of iron ingot with "new second item failed: %{_list::2}%"
assert {_list::3} is 36 of iron ingot with "new third item failed: %{_list::3}%"
assert size of {_list::*} is 3 with "size of second items in failed"
assert {_list::1} is stone named "bread" with "new first item failed"
assert {_list::2} is 64 of iron ingot with "new second item failed"
assert {_list::3} is 36 of iron ingot with "new third item failed"

test "filtering ExprItemsIn":
set {_world} to random world out of all worlds
Expand Down

0 comments on commit 067612b

Please sign in to comment.