Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Co-authored-by: Moderocky <admin@moderocky.com>
  • Loading branch information
UnderscoreTud and Moderocky authored Oct 9, 2023
1 parent 81780af commit 287e1eb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/test/skript/tests/syntaxes/expressions/ExprSortedList.sk
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ test "sort":

# Test sorting
loop sorted {_list::*}:
if {_prev} is not set:
set {_prev} to loop-value
continue
assert loop-value >= {_prev} with "Couldn't sort correctly"
if {_prev} is set:
assert loop-value >= {_prev} with "Couldn't sort correctly"
set {_prev} to loop-value

assert (sorted 1 and "test") is not set with "Sorting incomparable values returned a value"

0 comments on commit 287e1eb

Please sign in to comment.