diff options
| author | Marcus Winkler <marcus.winkler@bluesource.at> | 2015-07-02 18:55:00 +0300 |
|---|---|---|
| committer | Marcus Winkler <marcus.winkler@bluesource.at> | 2015-07-02 18:55:00 +0300 |
| commit | 18a72279dd25cd47beeedb9ea27e12035146f4a4 (patch) | |
| tree | 6cb2d6e15e9fd7dff92a56f0a4cb15391ca0a587 /core/src/test/java | |
| parent | e31ac261e34fbfae3c34d811ca5e82a91c3651c7 (diff) | |
| download | zxing-18a72279dd25cd47beeedb9ea27e12035146f4a4.tar.xz | |
Added unittest for PDF417 encoder using ISO-8859-1 with special chars
Diffstat (limited to 'core/src/test/java')
| -rw-r--r-- | core/src/test/java/com/google/zxing/pdf417/encoder/PDF417EncoderTestCase.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/test/java/com/google/zxing/pdf417/encoder/PDF417EncoderTestCase.java b/core/src/test/java/com/google/zxing/pdf417/encoder/PDF417EncoderTestCase.java index 9948ae611..315132fcc 100644 --- a/core/src/test/java/com/google/zxing/pdf417/encoder/PDF417EncoderTestCase.java +++ b/core/src/test/java/com/google/zxing/pdf417/encoder/PDF417EncoderTestCase.java @@ -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 { |
