Skip to content

Commit

Permalink
Merge pull request #154 from mchoe/fix/153-close-path-test-fail
Browse files Browse the repository at this point in the history
Close path test to test last element is a close path element
  • Loading branch information
mchoe authored Oct 16, 2019
2 parents 0a9b294 + 2f9a097 commit 9462fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftSVGTests/ClosePathTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ClosePathTests: XCTestCase {
_ = ClosePath(parameters: [], pathType: .absolute, path:testPath)
let lastPointAndType = testPath.cgPath.pointsAndTypes.last!
XCTAssert(lastPointAndType.1 == .closeSubpath, "Expected .closeSubpath, got \(lastPointAndType.1)")
XCTAssert(lastPointAndType.0.x == 20 && lastPointAndType.0.y == -30, "Expected 20, -30, got \(lastPointAndType.0)")
XCTAssert(lastPointAndType.0.x.isNaN == true && lastPointAndType.0.y.isNaN == true, "Expected NaN, NaN, got \(lastPointAndType.0)")
}

}

0 comments on commit 9462fba

Please sign in to comment.