summaryrefslogtreecommitdiff
path: root/core/src/test/java
AgeCommit message (Collapse)AuthorFilesLines
2018-03-23Fix a few typos in new PDF 417 testSean Owen1-9/+13
2018-03-15Improve support for Macro PDF417 (#973)Florian Schrag3-3/+113
* Improve support for Macro PDF417 * cleanup and move license to it's proper place * add .editorconfig + proper indentation / add optionalFields array * rename variables and use Arrays instead of System * replaced length with to * restore spaces & switch to package private
2017-12-18Add support for encoding GS1 formatted QR (#927)Damian Peckett1-0/+140
* Add support for encoding GS1 formatted QR * Place FNC1 mode header after ECI header
2017-11-20Issue #914: increase heuristic to allow version 11-20 in non-try-harder modeSean Owen1-1/+1
2017-11-16Closes #909Sean Owen1-2/+2
2017-11-08Add QRCode lenient diagonal check (#906)Aldracor3-3/+3
* Add QRCode lenient diagonal check Adding diagonal check to solve #897 to prevent false positives for centers * update tests to expect the increased number of successes
2017-09-20Add codeset A support to Code 128 (#877)Michael Jahn1-1/+24
* add support of Codeset A for Code 128 * simplification, everything from 0 to 127 is supported by Codeset A and B
2017-09-18Code39 extended mode encoding support (#876)Michael Jahn1-1/+48
* asterisk isn't a valid character which can be encoded with Code 39. the following sample content results in an unreadable barcode: *123456789 because the asterisk is the start-stop character (special meaning, not valid in content) the really encoded value is **123456789*. The barcode reader stops after reading the second asterisk and throw the content away. * remove wrong private modifier for ALPHABET_STRING * cleanup comments * add support for Code 39 extended mode encoding * add support for Code 39 extended mode encoding * clean ups * clean ups
2017-09-17Fix extended mode decoding code39 (#873)Michael Jahn1-0/+55
* fix extended mode decoding of Code 39 * beautification * tests for Code 39 extended mode decoding, full supported ascii table
2017-09-02Issue 863: add limited support for VALUE=uri in vCardSean Owen1-0/+10
2017-06-14Fix Codacy warningsSean Owen2-5/+5
2017-05-31Closes issue #806: bad encodation switch in non-ASCII DataMatrix encodation ↵Sean Owen1-0/+7
(credit micjahn)
2017-02-25Add basic test case for ITFWriter (#758)David Sanders1-0/+40
2017-02-20Add new matrix tests in RGBLuminanceSourceTestCase (#757)David Sanders1-0/+6
2017-02-10Issue #751 fix misparsing of vCard phone vs type in case of blank value or typeSean Owen1-16/+25
2017-01-06Closes #738 : fix UPC-E encoding with system 1Sean Owen1-6/+15
2016-11-29Fix typos; avoid use of java.util.Date; other small improvements from ↵Sean Owen3-8/+8
inspection; deprecate some accidentally-public methods
2016-10-01Partial fix for #679: UPC/EAN min quiet zone is 9 modules for encodingSean Owen3-6/+6
2016-10-01Partial fix for #679: add check digit if absent in UPC-A/E EAN-13/8 ↵Sean Owen3-0/+56
encoding, and reject those with invalid check digit
2016-10-01Update lax count for qr code 2Sean Owen1-1/+1
2016-09-11Move gh-pages branch into docs/, fix/overhaul site gen and javadoc, and ↵Sean Owen1-9/+0
regenerate site for 3.2.2-SNAPSHOT
2016-09-11More coverage for Code93/39 writers, and for multiple barcode detectionSean Owen16-78/+193
2016-09-11A little more coverage for PDF417 writer and multi QR codeSean Owen2-0/+141
2016-09-10Add more tests to better cover DataMatrix, Maxicode decodingSean Owen2-4/+37
2016-09-09Add 'getNumBits' to Result objects to return when not all bits of the raw ↵Sean Owen1-0/+39
byte representation are valid (#664)
2016-09-05Deprecate MonochromeRectangleDetector and more coverage-related improvementsSean Owen4-27/+56
2016-09-05Improve code coverage in some core classes, plus fix a small BitMatrix bugSean Owen3-0/+125
2016-08-08Minor follow on to last QR code version hint commitSean Owen1-14/+8
2016-08-08Add ability to specify a QR code version hint. (#637)germinator1-0/+22
* Add ability to specify a QR code version hint. * Checkstyle.
2016-08-08Aztec decoder fix: return to Upper mode after U/S B/S sequence. (#643)fgrieu1-5/+5
* Update Decoder.java * Add files via upload dlusbs.png and dlusbs.txt is a test case for the D/L [digit] U/S B/S sequence, which should end in Upper mode, not Digit mode * Update number of test cases * Comment logic of the fix * Mention fixed issue #642
2016-07-24A bunch of inspection changes, including some dead code removal and ↵Sean Owen8-178/+15
tightening visibility, removing unnecessary casts
2016-07-08Don't interpret very long strings.with.dots.like.this to be interpreted as URIsSean Owen1-0/+1
2016-06-24Implement more style checks around whitespaceSean Owen5-12/+12
2016-06-21Fix typo (#615)Sebastian Buchwald1-1/+1
2016-06-04Add minimal javadoc to all classes (and enforce with checkstyle); minor ↵Sean Owen4-3/+22
refactoring to of array sum code
2016-05-25Simplified pieces of code (#601)Nayuki2-3/+3
* Simplify code in bit-twiddling methods, using APIs introduced in Java 5. * Align code by adjusting whitespace and adding `+0`. * Convert qrcode DataMask to enum to reduce source code size, which shouldn't change behavior. * Simplify lists of character constants using string initializer instead of array. * Remove redundant `+ 0` operations from a recent change. * Delete the function DataMask.forReference() and inline the logic into all its callers.
2016-05-23Compute locale-specific expected date strings in test for JDK 9 compatibilitySean Owen1-7/+27
2016-05-08Fix for bug #593Taneli Huuskonen1-2/+21
* Fixed bug #593 Bug #593 was misleadingly reported as pertaining to another project, but testing revealed it affected this project as well. The Code128 encoding algorithm failed when an odd number of digits were followed by FNC1 and other digits. The code selection algorithm was rewritten. A test case showing the bug was added, and an old test case was updated to expect the result of the new algorithm - another valid encoding of the same length as the old one. * Fixed bug #593 Bug #593 was misleadingly reported as pertaining to another project, but testing revealed it affected this project as well. The Code128 encoding algorithm failed when an odd number of digits were followed by FNC1 and other digits. The code selection algorithm was rewritten. A test case showing the bug was added, and an old test case was updated to expect the result of the new algorithm - another valid encoding of the same length as the old one. * Cleaning up Added a private enum and changed some names to improve readability. Also some trivial cosmetic changes. * Further cleanup of Code128 writer test Removed a private one-liner method used exactly once, alphabetized imports.
2016-05-08Minor changes from inspectionSean Owen5-63/+38
2016-05-05Cleaned up previous commitTaneli Huuskonen1-25/+18
Following Sean Owen's suggestions, I cleaned up my code in the Aztec decoder and its tests as follows: 1. Made convertBoolArrayToByteArray() package-private. 2. Replaced my own assertEqualByteArrays() with existing assertArrayEquals(). 3. Replaced C-style array declarations with more Javaish ones.
2016-05-05Aztec decoder returns raw bytesTaneli Huuskonen1-1/+33
The Aztec decoder now packs the code bits into bytes and returns them as "raw bytes", even though the error correction codes and stuffing have been already removed. Also added a couple of tests for the byte-packing function.
2016-01-21Update plugins, dependencies, and clean up small code inspection issuesSean Owen2-2/+2
2015-12-02QRCode Encoder: Support NUMERIC/ALPHANUMERIC Mode in Shift_JISsato yoshiyuki1-0/+75
2015-10-01change the commentwood1-1/+3
Change the comment
2015-09-01Ignore additional PDF417 barcode rowsGuenther Grau1-2/+2
Some barcode generators (e.g. Okapi) seem to generate additional barcode rows at the end of the barcode, which can be decoded as valid barcode rows, but actually contain garbage. The barcode metadata states that these additional rows are not part of the barcode. So we ignore those addional rows when parsing the barcode. This could potentially also happen (though quite unlikely) if data after the barcode looks like a barcode row.
2015-07-02Merge pull request #412 from strguntbr/multibyteFixSean Owen1-0/+6
Fixed substring call
2015-07-02Added unittest for PDF417 encoder using ISO-8859-1 with special charsMarcus Winkler1-0/+6
2015-06-06Remove spurious stack trace from singleton exception, and various minor editsSean Owen2-2/+2
2015-05-26Fix javadoc 8 error; actually enable enforcer; update pluginsSean Owen1-0/+1
2015-05-20Added unit test for multibyte problemMarcus Winkler1-0/+7