Here are the examples of the csharp api class ZXing.PDF417.Internal.Test.ErrorCorrectionTestCase.checkDecode(int[], int[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
1. Example
View licenseprivate bool checkDecode(int[] received) { return checkDecode(received, new int[0]); }
0
2. Example
View license[Test] public void testMaxErasures() { Random random = getRandom(); foreach (int test in PDF417_TEST) { // # iterations is kind of arbitrary int[] received = (int[]) PDF417_TEST_WITH_EC.Clone(); int[] erasures = erase(received, MAX_ERASURES, random); checkDecode(received, erasures); } }
0
3. Example
View license[Test] public void testTooManyErasures() { Random random = getRandom(); int[] received = (int[]) PDF417_TEST_WITH_EC.Clone(); int[] erasures = erase(received, MAX_ERASURES + 1, random); Assert.That(checkDecode(received, erasures), Is.Not.True, "Should not have decoded"); }