"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/test/java/com/google/zxing/oned/rss/expanded/RSSExpandedImage2binaryTestCase.java" between
zxing-zxing-3.4.1.tar.gz and zxing-zxing-3.5.0.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Info: Project is in maintenance mode (no active development).

RSSExpandedImage2binaryTestCase.java  (zxing-zxing-3.4.1):RSSExpandedImage2binaryTestCase.java  (zxing-zxing-3.5.0)
skipping to change at line 55 skipping to change at line 55
/** /**
* @author Pablo Orduña, University of Deusto (pablo.orduna@deusto.es) * @author Pablo Orduña, University of Deusto (pablo.orduna@deusto.es)
* @author Eduardo Castillejo, University of Deusto (eduardo.castillejo@deusto.e s) * @author Eduardo Castillejo, University of Deusto (eduardo.castillejo@deusto.e s)
*/ */
public final class RSSExpandedImage2binaryTestCase extends Assert { public final class RSSExpandedImage2binaryTestCase extends Assert {
@Test @Test
public void testDecodeRow2binary1() throws Exception { public void testDecodeRow2binary1() throws Exception {
// (11)100224(17)110224(3102)000100 // (11)100224(17)110224(3102)000100
assertCorrectImage2binary( assertCorrectImage2binary("1.png",
"1.png", " ...X...X .X....X. .XX...X. X..X...X ...XX.X. ..X.X... ..X.X.. " ...X...X .X....X. .XX...X. X..X...X ...XX.X. ..X.X... ..X.X..X ...X..X
X ...X..X. X.X....X .X....X. .....X.. X...X..."); . X.X....X .X....X. .....X.. X...X...");
} }
@Test @Test
public void testDecodeRow2binary2() throws Exception { public void testDecodeRow2binary2() throws Exception {
// (01)90012345678908(3103)001750 // (01)90012345678908(3103)001750
assertCorrectImage2binary("2.png", " ..X..... ......X. .XXX.X.X .X...XX. XXX XX.XX XX.X.... .XX.XX.X .XX."); assertCorrectImage2binary("2.png", " ..X..... ......X. .XXX.X.X .X...XX. XXX XX.XX XX.X.... .XX.XX.X .XX.");
} }
@Test @Test
public void testDecodeRow2binary3() throws Exception { public void testDecodeRow2binary3() throws Exception {
skipping to change at line 85 skipping to change at line 85
"4.png", " ..XXXX.X XX.XXXX. .XXX.XX. XX..X... .XXXXX.. XX.X..X. ..XX..X X XX.X.XXX X..XX..X .X.XXXXX XXXX"); "4.png", " ..XXXX.X XX.XXXX. .XXX.XX. XX..X... .XXXXX.. XX.X..X. ..XX..X X XX.X.XXX X..XX..X .X.XXXXX XXXX");
} }
@Test @Test
public void testDecodeRow2binary5() throws Exception { public void testDecodeRow2binary5() throws Exception {
// (01)90614141000015(3202)000150 // (01)90614141000015(3202)000150
assertCorrectImage2binary( assertCorrectImage2binary(
"5.png", " ..X.X... .XXXX.X. XX..XXXX ....XX.. X....... ....X... ....X.. X .XX."); "5.png", " ..X.X... .XXXX.X. XX..XXXX ....XX.. X....... ....X... ....X.. X .XX.");
} }
@SuppressWarnings("checkstyle:lineLength")
@Test @Test
public void testDecodeRow2binary10() throws Exception { public void testDecodeRow2binary10() throws Exception {
// (01)98898765432106(15)991231(3103)001750(10)12A(422)123(21)123456(423)012 3456789012 // (01)98898765432106(15)991231(3103)001750(10)12A(422)123(21)123456(423)012 3456789012
assertCorrectImage2binary( assertCorrectImage2binary("10.png",
"10.png", " .X.XX..X XX.XXXX. .XXX.XX. XX..X... .XXXXX.. XX.X..X. ..XX.. " .X.XX..X XX.XXXX. .XXX.XX. XX..X... .XXXXX.. XX.X..X. ..XX...X XX.X...
.X XX.X.... X.X.X.X. X.X..X.X .X....X. XX...X.. ...XX.X. .XXXXXX. .X..XX.. X.X.X . X.X.X.X. X.X..X.X .X....X. XX...X.. ...XX.X. .XXXXXX. .X..XX.. X.X.X... .X....
... .X...... XXXX.... XX.XX... XXXXX.X. ...XXXXX .....X.X ...X.... X.XXX..X X.X. .. XXXX.... XX.XX... XXXXX.X. ...XXXXX .....X.X ...X.... X.XXX..X X.X.X... XX.XX
X... XX.XX..X .X..X..X .X.X.X.X X.XX...X .XX.XXX. XXX.X.XX ..X."); ..X .X..X..X .X.X.X.X X.XX...X .XX.XXX. XXX.X.XX ..X.");
} }
@SuppressWarnings("checkstyle:lineLength")
@Test @Test
public void testDecodeRow2binary11() throws Exception { public void testDecodeRow2binary11() throws Exception {
// (01)98898765432106(15)991231(3103)001750(10)12A(422)123(21)123456 // (01)98898765432106(15)991231(3103)001750(10)12A(422)123(21)123456
assertCorrectImage2binary( assertCorrectImage2binary("11.png",
"11.png", " .X.XX..X XX.XXXX. .XXX.XX. XX..X... .XXXXX.. XX.X..X. ..XX.. " .X.XX..X XX.XXXX. .XXX.XX. XX..X... .XXXXX.. XX.X..X. ..XX...X XX.X...
.X XX.X.... X.X.X.X. X.X..X.X .X....X. XX...X.. ...XX.X. .XXXXXX. .X..XX.. X.X.X . X.X.X.X. X.X..X.X .X....X. XX...X.. ...XX.X. .XXXXXX. .X..XX.. X.X.X... .X....
... .X...... XXXX.... XX.XX... XXXXX.X. ...XXXXX .....X.X ...X.... X.XXX..X X.X. .. XXXX.... XX.XX... XXXXX.X. ...XXXXX .....X.X ...X.... X.XXX..X X.X.X... ...."
X... ...."); );
} }
@Test @Test
public void testDecodeRow2binary12() throws Exception { public void testDecodeRow2binary12() throws Exception {
// (01)98898765432106(3103)001750 // (01)98898765432106(3103)001750
assertCorrectImage2binary( assertCorrectImage2binary(
"12.png", " ..X..XX. XXXX..XX X.XX.XX. .X....XX XXX..XX. X..X.... .XX.XX .X .XX."); "12.png", " ..X..XX. XXXX..XX X.XX.XX. .X....XX XXX..XX. X..X.... .XX.XX .X .XX.");
} }
@Test @Test
 End of changes. 5 change blocks. 
13 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)