Skip to content

Commit

Permalink
testing unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
j0nimost committed Oct 17, 2023
1 parent c6dc686 commit cac1ad4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/KafaTests/KafaReadTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using nyingi.Kafa.Reader;
using nyingi.Kafa.Reader;
using System.IO;

namespace KafaTests
Expand Down Expand Up @@ -266,5 +266,19 @@ public void ReadSpecialSeparator(string specialStyle)
Assert.Equal("\"AAL\"", rows[1].Cols[6].ToString());

}


[Fact]
public void ReadUnicode()
{
string unicodeCsv = "2013-02-08,15.07 €,15.12 ¥,14.63 ¥,14.75 ¥,8407500,\"AAL✅\"";
using var rows = Kafa.Read(unicodeCsv, ReadEverythingOption);
Assert.NotEmpty(rows);
Assert.Equal("15.07 €", rows[0].Cols[1].ToString());
Assert.Equal("14.75 ¥", rows[0].Cols[4].ToString());
Assert.Equal("\"AAL✅\"", rows[0].Cols[6].ToString());


}
}
}

0 comments on commit cac1ad4

Please sign in to comment.