From 287e1ebd864f696c44de0e0d8f6b75974e3f817c Mon Sep 17 00:00:00 2001 From: _tud Date: Mon, 9 Oct 2023 13:41:41 +0300 Subject: [PATCH] Fix test Co-authored-by: Moderocky --- .../skript/tests/syntaxes/expressions/ExprSortedList.sk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/skript/tests/syntaxes/expressions/ExprSortedList.sk b/src/test/skript/tests/syntaxes/expressions/ExprSortedList.sk index 6fd9d0e55f8..819486dbaaa 100644 --- a/src/test/skript/tests/syntaxes/expressions/ExprSortedList.sk +++ b/src/test/skript/tests/syntaxes/expressions/ExprSortedList.sk @@ -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"