Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineDominion committed Jun 4, 2020
1 parent 05b1e16 commit 8c65a81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SwiftCSVTests/NewlineTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import XCTest
@testable import SwiftCSV

class NewlineTests: XCTestCase {

func testInit_withCR() throws {
let csv = try CSV<NamedView>(string: "id,name,age\r1,Alice,18\r2,Bob,19\r3,Charlie,20")
XCTAssertEqual(csv.header, ["id", "name", "age"])
Expand Down Expand Up @@ -51,7 +50,7 @@ class NewlineTests: XCTestCase {
}

func testInit_whenThereIsExtraCarriageReturnAtTheEnd() throws {
csv = try CSV(string: "id,name,age\n1,Alice,18\n2,Bob,19\n3,Charlie\r\n")
let csv = try CSV<NamedView>(string: "id,name,age\n1,Alice,18\n2,Bob,19\n3,Charlie\r\n")
let expected = [
["id": "1", "name": "Alice", "age": "18"],
["id": "2", "name": "Bob", "age": "19"],
Expand Down

0 comments on commit 8c65a81

Please sign in to comment.