Skip to content

Commit

Permalink
Fix Flaky Test
Browse files Browse the repository at this point in the history
  • Loading branch information
thecoolwinter committed Jun 22, 2024
1 parent 30fd7b8 commit 28afd25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/CodeEditTextViewTests/MarkedTextTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
)
}
Expand Down

0 comments on commit 28afd25

Please sign in to comment.