mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
refactor testEncodeAuto UT
This commit is contained in:
parent
7b7ba826a2
commit
0e8dbcb0cf
|
@ -38,9 +38,8 @@ public final class PDF417EncoderTestCase extends Assert {
|
||||||
private static final String PDF417PFX = "\u039f\u001A\u0385";
|
private static final String PDF417PFX = "\u039f\u001A\u0385";
|
||||||
@Test
|
@Test
|
||||||
public void testEncodeAuto() throws Exception {
|
public void testEncodeAuto() throws Exception {
|
||||||
String encoded = PDF417HighLevelEncoder.encodeHighLevel(
|
String input = "ABCD";
|
||||||
"ABCD", Compaction.AUTO, StandardCharsets.UTF_8, false);
|
assertEquals(PDF417PFX + input, checkEncodeAutoWithSpecialChars(input, Compaction.AUTO));
|
||||||
assertEquals(PDF417PFX + "ABCD", encoded);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in a new issue