Skip to content

Commit

Permalink
Disable a portion of testReplaceRange that hits issues with Swift 4's
Browse files Browse the repository at this point in the history
exclusive access checking.
  • Loading branch information
bdash committed Sep 19, 2017
1 parent 6cb5edf commit df38d3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RealmSwift/Tests/PrimitiveListTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,12 @@ class PrimitiveListTests<O: ObjectFactory, V: ValueFactory>: PrimitiveListTestsB

func testReplaceRange() {
assertSucceeds { array.replaceSubrange(0..<0, with: []) }

#if false
// FIXME: The exception thrown here runs afoul of Swift's exclusive access checking.
assertThrows(array.replaceSubrange(0..<1, with: []),
reason: "Index 0 is out of bounds")
#endif

array.replaceSubrange(0..<0, with: [values[0]])
XCTAssertEqual(array.count, 1)
Expand Down

0 comments on commit df38d3a

Please sign in to comment.