"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/test/java/com/google/zxing/qrcode/encoder/QRCodeTestCase.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).

QRCodeTestCase.java  (zxing-zxing-3.4.1):QRCodeTestCase.java  (zxing-zxing-3.5.0)
skipping to change at line 65 skipping to change at line 65
// Set the matrix. // Set the matrix.
qrCode.setMatrix(matrix); qrCode.setMatrix(matrix);
assertSame(matrix, qrCode.getMatrix()); assertSame(matrix, qrCode.getMatrix());
} }
@Test @Test
public void testToString1() { public void testToString1() {
QRCode qrCode = new QRCode(); QRCode qrCode = new QRCode();
String expected = String expected =
"<<\n" + "<<\n" +
" mode: null\n" + " mode: null\n" +
" ecLevel: null\n" + " ecLevel: null\n" +
" version: null\n" + " version: null\n" +
" maskPattern: -1\n" + " maskPattern: -1\n" +
" matrix: null\n" + " matrix: null\n" +
">>\n"; ">>\n";
assertEquals(expected, qrCode.toString()); assertEquals(expected, qrCode.toString());
} }
@Test @Test
public void testToString2() { public void testToString2() {
QRCode qrCode = new QRCode(); QRCode qrCode = new QRCode();
qrCode.setMode(Mode.BYTE); qrCode.setMode(Mode.BYTE);
qrCode.setECLevel(ErrorCorrectionLevel.H); qrCode.setECLevel(ErrorCorrectionLevel.H);
qrCode.setVersion(Version.getVersionForNumber(1)); qrCode.setVersion(Version.getVersionForNumber(1));
qrCode.setMaskPattern(3); qrCode.setMaskPattern(3);
 End of changes. 1 change blocks. 
7 lines changed or deleted 7 lines changed or added

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