Added unittest for PDF417 encoder using ISO-8859-1 with special chars

This commit is contained in:
Marcus Winkler 2015-07-02 17:55:00 +02:00
parent e31ac261e3
commit 18a72279dd

View file

@ -36,6 +36,12 @@ public final class PDF417EncoderTestCase extends Assert {
PDF417HighLevelEncoder.encodeHighLevel(
"1%§s ?aG$", Compaction.AUTO, StandardCharsets.UTF_8);
}
@Test
public void testEncodeIso88591WithSpecialChars() throws Exception {
// Just check if this does not throw an exception
PDF417HighLevelEncoder.encodeHighLevel("asdfg§asd", Compaction.AUTO, StandardCharsets.ISO_8859_1);
}
@Test
public void testEncodeText() throws Exception {