Tests: add extra examples #189 aztec; refresh gifs print test

This commit is contained in:
gitlost 2020-04-08 11:22:01 +01:00
parent 9795ffe641
commit 22570f6c73
5 changed files with 74 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 B

After

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 305 B

View File

@ -264,7 +264,75 @@ static void test_encode(void)
"00010001010101010101011" "00010001010101010101011"
"11101100000000000010110" "11101100000000000010110"
}, },
/* 6*/ { BARCODE_AZRUNE, UNICODE_MODE, -1, -1, "0", 0, 11, 11, "ISO/IEC 24778:2008 Figure A.1 (1st)", /* 6*/ { BARCODE_AZTEC, GS1_MODE, -1, -1, "[01]95012345678903[3103]000123", 0, 19, 19, "#189 Follow embedded FLG(n) with FLG(0)",
"0000000100001010101"
"0001101111011000000"
"0111100100010110100"
"0011000110100100110"
"0010110101010010110"
"0101111111111110101"
"0011110000000101000"
"0101010111110100011"
"1101110100010110100"
"1000010101010111010"
"0011110100010100110"
"1000110111110111110"
"0010110000000101010"
"1111011111111111101"
"1001001111001000100"
"1111111110110100011"
"0111000111101011001"
"1000110111011000101"
"1010100000101101001"
},
/* 7*/ { BARCODE_AZTEC, GS1_MODE, -1, -1, "[01]04610044273252[21]LRFX)k<C7ApWJ[91]003A[92]K8rNAqdvjmdxsmCVuj3FhaoNzQuq7Uff0sHXfz1TT/doiMaGQqNF+VPwMvwVbm1fxjzuDt6jxLCcc8o/tqbEDA==", 0, 45, 45, "#189 Follow embedded FLG(n) with FLG(0)",
"000000101110011010101010010110011000001010111"
"000110001111011100111101101110110000000000011"
"001000101100101011000011111111101110111010101"
"010010001000111100001101110011100111110100100"
"001001100110001000011011011011000101001010010"
"001101011110100001001101001101110111100111100"
"101010101010101010101010101010101010101010101"
"000111001111100010000000100000111001000111110"
"111100111010000100100111100011001110001100001"
"110101001000001101011100110101001110000101010"
"000111111010001101111110100110001011001110001"
"011000000000100001101100000000011000100011110"
"001100110100000101000111111101110100011001010"
"011010000111011010100100001101001111010000111"
"100011100111010101011110000001010111001110111"
"011010000001010110011000000101101011110100010"
"001100100001010111111111111111110010101111100"
"111010010111010010000000000011101100100011000"
"010100110000110110111111111011010010011111100"
"001011001110010110100000001010101111010011000"
"001010101101100110101111101011100111111111000"
"010001001100111010101000101011111100000100000"
"101010101010101010101010101010101010101010101"
"101100010101111010101000101010100000110101111"
"011010101100110010101111101010000001001101101"
"001110000010110010100000001011101111010011100"
"011001100001111010111111111010001010001111000"
"000001011101101010000000000011101100010110111"
"110111111111001011111111111111110101101001101"
"000010011011101001110000111000101101000000011"
"111111101001101111011111110110101010001110001"
"001010011011011100100101100100000100100101111"
"100101100101110100010111010111001100001111011"
"010111001001000111010101110101010111010111100"
"001110110000001110001010000100110011101100101"
"101001000110001000010101001110110010110000100"
"101111100000010000110111010000010111111111111"
"100000011010001000010001110100010100010111010"
"101010101010101010101010101010101010101010101"
"101001000011011010010001001100101110100010110"
"001100100111001101011011111110110010011110100"
"111100011011100010110001001111110011100011101"
"101101111001110100000011101110110100011101011"
"000011010110101110000101110100000111000011010"
"101001110101010110100011010010001111001101101"
},
/* 8*/ { BARCODE_AZRUNE, UNICODE_MODE, -1, -1, "0", 0, 11, 11, "ISO/IEC 24778:2008 Figure A.1 (1st)",
"11101010101" "11101010101"
"11111111111" "11111111111"
"01000000010" "01000000010"
@ -277,7 +345,7 @@ static void test_encode(void)
"01111111111" "01111111111"
"00101010100" "00101010100"
}, },
/* 7*/ { BARCODE_AZRUNE, UNICODE_MODE, -1, -1, "25", 0, 11, 11, "ISO/IEC 24778:2008 Figure A.1 (2nd)", /* 9*/ { BARCODE_AZRUNE, UNICODE_MODE, -1, -1, "25", 0, 11, 11, "ISO/IEC 24778:2008 Figure A.1 (2nd)",
"11101100101" "11101100101"
"11111111111" "11111111111"
"01000000011" "01000000011"
@ -290,7 +358,7 @@ static void test_encode(void)
"01111111111" "01111111111"
"00100100000" "00100100000"
}, },
/* 8*/ { BARCODE_AZRUNE, UNICODE_MODE, -1, -1, "125", 0, 11, 11, "ISO/IEC 24778:2008 Figure A.1 (3rd)", /* 10*/ { BARCODE_AZRUNE, UNICODE_MODE, -1, -1, "125", 0, 11, 11, "ISO/IEC 24778:2008 Figure A.1 (3rd)",
"11110101101" "11110101101"
"11111111111" "11111111111"
"11000000011" "11000000011"
@ -303,7 +371,7 @@ static void test_encode(void)
"01111111111" "01111111111"
"00111101000" "00111101000"
}, },
/* 9*/ { BARCODE_AZRUNE, UNICODE_MODE, -1, -1, "255", 0, 11, 11, "ISO/IEC 24778:2008 Figure A.1 (4th)", /* 11*/ { BARCODE_AZRUNE, UNICODE_MODE, -1, -1, "255", 0, 11, 11, "ISO/IEC 24778:2008 Figure A.1 (4th)",
"11110101001" "11110101001"
"11111111111" "11111111111"
"01000000011" "01000000011"
@ -815,7 +883,7 @@ static void test_fuzz(void)
int main() int main()
{ {
test_encode(); test_encode();
//test_fuzz(); test_fuzz();
testReport(); testReport();

View File

@ -34,7 +34,7 @@
//#define TEST_PRINT_GENERATE_EXPECTED 1 //#define TEST_PRINT_GENERATE_EXPECTED 1
//#define TEST_PRINT_OVERWRITE_EXPECTED "bmp,emf,eps,gif,pcx,png,svg,tif,txt" //#define TEST_PRINT_OVERWRITE_EXPECTED "bmp,emf,eps,gif,pcx,png,svg,tif,txt"
#define TEST_PRINT_OVERWRITE_EXPECTED "" //#define TEST_PRINT_OVERWRITE_EXPECTED "gif"
static void test_print(void) static void test_print(void)
{ {