Daniel1of1 / CSwiftV

A csv parser written in swift conforming to rfc4180
BSD 3-Clause "New" or "Revised" License
171 stars 46 forks source link

Work around XCTAssertEqual issue #23

Closed jyunderwood closed 8 years ago

jyunderwood commented 8 years ago

XCTAssertEqual is only specialized for one level deep on arrays (SR-2284). The tests might have worked in earlier Swift 3 betas, but not in Xcode 8 beta 6.

So this PR breaks the asserts up and tests each row of the arrayUnderTest and the expectedArray. It's not ideal, but it's explicit and correctly tests the original functionality.

Daniel1of1 commented 8 years ago

amazing - had no idea, thanks for the link / PR.