Here are the examples of the csharp api class ZXing.PDF417.Internal.Test.ErrorCorrectionTestCase.checkDecode(int[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
4 Examples
0
1. Example
View license[Test] public void testNoError() { int[] received = (int[]) PDF417_TEST_WITH_EC.Clone(); // no errors checkDecode(received); }
0
2. Example
View license[Test] public void testMaxErrors() { Random random = getRandom(); foreach (int test in PDF417_TEST) { // # iterations is kind of arbitrary int[] received = (int[]) PDF417_TEST_WITH_EC.Clone(); corrupt(received, MAX_ERRORS, random); checkDecode(received); } }
0
3. Example
View license[Test] public void testOneError() { Random random = getRandom(); for (int i = 0; i < PDF417_TEST_WITH_EC.Length; i++) { int[] received = (int[]) PDF417_TEST_WITH_EC.Clone(); received[i] = random.Next(256); checkDecode(received); } }
0
4. Example
View license[Test] public void testTooManyErrors() { int[] received = (int[]) PDF417_TEST_WITH_EC.Clone(); Random random = getRandom(); corrupt(received, MAX_ERRORS + 1, random); Assert.IsFalse(checkDecode(received)); }