Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
doyaaaaaken committed Aug 23, 2019
1 parent b9cbad5 commit 84d7f38
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@ class CsvParserTest : StringSpec() {
"parse row with delimiter at the end" {
parser.parseRow("a,") shouldBe listOf("a", "")
}
"parse \\r\\n after quote end" {
parser.parseRow("""a,"b"${"\r"}""") shouldBe listOf("a", "b")
parser.parseRow("""a,"b"${"\r\n"}""") shouldBe listOf("a", "b")
}
}
}

0 comments on commit 84d7f38

Please sign in to comment.