Skip to content

Commit

Permalink
resolved warning, disable performance test because of mysterious unkn…
Browse files Browse the repository at this point in the history
…own error on iOS 9
  • Loading branch information
hfutrell committed Apr 25, 2019
1 parent 5c6d5f3 commit 3bccc1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
<Test
Identifier = "PathTests/testCrossingsRemovedAnotherRealWorldCase()">
</Test>
<Test
Identifier = "PathTests/testSubtractionPerformance()">
</Test>
</SkippedTests>
</TestableReference>
</Testables>
Expand Down
4 changes: 3 additions & 1 deletion BezierKit/BezierKitTests/Path+DataTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ private struct CGPathElementRecord: Equatable {
return 3
case .closeSubpath:
return 0
@unknown default:
fatalError("unexpected unknown path element type: \(pathElement.type)")
}
}()
self.pointsArray = [CGPoint](UnsafeBufferPointer(start: pathElement.points, count: count))
Expand Down Expand Up @@ -172,7 +174,7 @@ class PathDataTests: XCTestCase {
func testWrongMagicNumber() {
var data = simpleRectangle.data
XCTAssertNotEqual(Path(data: data), nil)
data.withUnsafeMutableBytes { (bytes: UnsafeMutablePointer<UInt8>) in
data.withUnsafeMutableBytes { (bytes: UnsafeMutableRawBufferPointer) in
bytes[0] = ~bytes[0]
}
XCTAssertEqual(Path(data: data), nil)
Expand Down

0 comments on commit 3bccc1f

Please sign in to comment.