mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Added unit test for multibyte problem
This commit is contained in:
parent
8bae23a923
commit
060010253c
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue