From 22570f6c7344eef547f56548717eac3d8d511add Mon Sep 17 00:00:00 2001 From: gitlost Date: Wed, 8 Apr 2020 11:22:01 +0100 Subject: [PATCH] Tests: add extra examples #189 aztec; refresh gifs print test --- backend/tests/data/print/gif/code128_aim.gif | Bin 1371 -> 1432 bytes .../tests/data/print/gif/dotcode_aim_fig7.gif | Bin 83 -> 138 bytes backend/tests/data/print/gif/qr_v1_m.gif | Bin 248 -> 305 bytes backend/tests/test_aztec.c | 78 ++++++++++++++++-- backend/tests/test_print.c | 2 +- 5 files changed, 74 insertions(+), 6 deletions(-) diff --git a/backend/tests/data/print/gif/code128_aim.gif b/backend/tests/data/print/gif/code128_aim.gif index e2f87bf94c3f23a01b0f878fb37f369b48b70e86..864a29a401c66866dd041106b79b9df51677c19c 100644 GIT binary patch literal 1432 zcmV;J1!ww4Nk%w1VTb^B0P_F<|Ns9000960{{a90009600RR600RR600RI3000000 z00000000000000000000A^8LW000jFEC2ui0Ehr~000F4FvtLato7opHJ@7sh91^Y z)^wJlsJiIKrf&+@<=oojD90w?ZZ)cXZYX1LraB>=!BCXCHa%xB8a!rsNc)vDaiuIE$Es&2#6YU8!5yL{VfklE|M`Sruc*VwJ>X=~PP zAFWF6`ppT*3K^Jz<>-N9H_=xwc*fEJgD5Z}##zz-CUty=%i5-fjG&E7`SD>$kSoFY zJ2@|)%a{~J-OMD-;;WAgYdTc9Gg(Wbse1C0xeysjqv7sJH2AWptvfSw2xS?SAij7x z!TO|DlAK0!IElq-r%&usv$<$ulZei0Teh(fjwQ)6W6ErGk%q;4P$@@+akb91DOl}B zs*&`*jh9v4;-Oci9{mQ{ZpOrx0b=gzv8>^$jc@hEdbV5OZ|d9@7U`Ka=!k&RQj9Hm zHq6>UooY$gk@8xj(0q}72ON9&Wk=k8#!dH|gte`A zpK$p-I9YTE_E#TY5;jO+dGT%Lm~>YK*W5-0{=%Dr6sq?VgBUuvontSeCrgDhUbrG! zJeKC+i5*s_qFgpY2-|_Z(MKAHqKL>Mi9*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mZ?wbh9u|lx7fR_`tyM|Nnmm1_m7A@4sDdDf;S4_un`dMgPiGtiGooY$}_4 zsqMmQ(a6-O`4Q1;IEu~6J+p4CVVfO%xlqXO`m(1brqyfTzdv12a&vdv d(dZqg^EXU*|LX3e$#3>wId=W(6Bh;sYXGsIjk*8; literal 248 zcmV2n)s?R+_Xrc4dS% zy$@-R5`x%ap5l3BCONJ0*LvI*m-C3*u)j&wG{4#}wKAe^#HEs#1S*G2RVhaj246j7 zRqLf{JI8B}jCOX-XfOEdj=!^Vs`%!DTJ7s*-Wt`>w4=k-R`vJCGi3pixTKf1MMy_E zS-0gTG)2h2BU yj3}H6e5_oghPrF&j0+e`%{I;Hjn(|Bm;1!}J4Q-4?j3D?2tJFfyPRxR002AU0d^<= diff --git a/backend/tests/test_aztec.c b/backend/tests/test_aztec.c index 8a47f09d..54fb4ac2 100644 --- a/backend/tests/test_aztec.c +++ b/backend/tests/test_aztec.c @@ -264,7 +264,75 @@ static void test_encode(void) "00010001010101010101011" "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