Issue 1712 fix test case too

git-svn-id: https://zxing.googlecode.com/svn/trunk@2821 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-06-18 16:58:29 +00:00
parent 732d34cc5a
commit ea1c78af59

View file

@ -34,7 +34,7 @@ public final class CodaBarWriterTestCase extends Assert {
String resultStr = "0000000000" + String resultStr = "0000000000" +
"1001001011011010100101010110010110101001010100110101100101010110110101101001001011" "1001001011011010100101010110010110101001010100110101100101010110110101101001001011"
+ "0000000000"; + "0000000000";
BitMatrix result = new CodaBarWriter().encode("B515-3/N", BarcodeFormat.CODABAR, resultStr.length(), 0); BitMatrix result = new CodaBarWriter().encode("B515-3/B", BarcodeFormat.CODABAR, resultStr.length(), 0);
for (int i = 0; i < resultStr.length(); i++) { for (int i = 0; i < resultStr.length(); i++) {
assertEquals("Element " + i, resultStr.charAt(i) == '1', result.get(i, 0)); assertEquals("Element " + i, resultStr.charAt(i) == '1', result.get(i, 0));
} }