Created
November 24, 2014 23:33
-
-
Save balihoo-jmelanson/6f3aa84d2935ae231639 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it("read simple CSV string with empty field") { | |
val csvString = "a,b,c\n\"d\",\"\",\"f\"\n" | |
var res: List[String] = Nil | |
using(CSVReader.open(new StringReader(csvString))) { reader => | |
reader foreach { fields => | |
res = res ++ fields | |
} | |
} | |
res.mkString(",") should be("a,b,c,d,,f") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment