Added unit test for multibyte problem

This commit is contained in:
Marcus Winkler 2015-05-20 12:47:59 +02:00
parent 8bae23a923
commit 060010253c

View file

@ -30,6 +30,13 @@ public final class PDF417EncoderTestCase extends Assert {
assertEquals("\u039f\u001A\u0385ABCD", encoded);
}
@Test
public void testEncodeAutoWithSpecialChars() throws Exception {
//Just check if this does not throw an exception
PDF417HighLevelEncoder.encodeHighLevel(
"1%§s ?aG$", Compaction.AUTO, StandardCharsets.UTF_8);
}
@Test
public void testEncodeText() throws Exception {
String encoded = PDF417HighLevelEncoder.encodeHighLevel(