Skip to content

Commit

Permalink
Merge master into generic-views
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineDominion committed Aug 21, 2019
2 parents 9758451 + 22dc4dd commit be46ff3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions SwiftCSVTests/CSVTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,13 @@ class CSVTests: XCTestCase {
XCTAssertEqual(expected[index], row)
}
}

func testThrowsOnInvalidData() {
do {
_ = try CSV(string: "\n\n<html lang=\"en\">\n \n <meta charset=\"utf-8\"></html>", delimiter: ",", loadColumns: false)
XCTFail("Expected to throw")
} catch {
XCTAssert(error is CSVParseError)
}
}
}

0 comments on commit be46ff3

Please sign in to comment.