Skip to content

Commit

Permalink
add semicolon delimiter guessing case reported as error
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineDominion committed Jul 1, 2022
1 parent a84ef0d commit 435e558
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SwiftCSVTests/CSVDelimiterGuessingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ class CSVDelimiterGuessingTests: XCTestCase {
XCTAssertEqual(CSVDelimiter.guessed(string: #""a";"b";"c""#), .semicolon)
XCTAssertEqual(CSVDelimiter.guessed(string: #""a,";"b\t";"c""#), .semicolon,
"Prioritizes separator between quotations over first occurrence")

XCTAssertEqual(CSVDelimiter.guessed(string: """
"Test";"Test_1"
"Test";"Test_2"
"""), .semicolon)
}

func testGuessDelimiter_Tab() throws {
Expand Down

0 comments on commit 435e558

Please sign in to comment.