From 28afd2509cf66115d56b8da31a807eba02dfa28f Mon Sep 17 00:00:00 2001 From: Khan Winter <35942988+thecoolwinter@users.noreply.github.com> Date: Fri, 21 Jun 2024 22:59:07 -0500 Subject: [PATCH] Fix Flaky Test --- Tests/CodeEditTextViewTests/MarkedTextTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/CodeEditTextViewTests/MarkedTextTests.swift b/Tests/CodeEditTextViewTests/MarkedTextTests.swift index 4fec5911..66321953 100644 --- a/Tests/CodeEditTextViewTests/MarkedTextTests.swift +++ b/Tests/CodeEditTextViewTests/MarkedTextTests.swift @@ -98,7 +98,7 @@ class MarkedTextTests: XCTestCase { XCTAssertEqual(textView.string, "A´4B´4C") XCTAssertEqual( - textView.selectionManager.textSelections.map(\.range), + textView.selectionManager.textSelections.map(\.range).sorted(by: { $0.location < $1.location }), [NSRange(location: 3, length: 0), NSRange(location: 6, length: 0)] ) }