susia77 / pdfium

Automatically exported from code.google.com/p/pdfium
0 stars 0 forks source link

Unittest for XFA barcode engine #99

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A unit test is needed to test XFA barcode engine. To achieve this, we may need 
a reference barcode decoder (either from pdfium or prebuilt zxing enine).

I imagine the unittest will be like this:
1) Given an input string and barcode type.
2) Generate the barcode bitmap.
3) Using reference barcode decoder to decode the bitmap.
4) Compare with the original string.

The test case should cover all barcode type and a set of strings with various 
length (0-100) and different combination of numbers and characters.

Original issue reported on code.google.com by bo...@foxitsoftware.com on 29 Dec 2014 at 6:56