From c0a4fa43f01d8e80b3054f9f5af8012f00908682 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Fri, 4 May 2018 10:14:26 +0300 Subject: [PATCH] Add a test for PDF recognition by DOI (#1496) --- test/tests/data/recognizePDF_test_DOI.pdf | Bin 0 -> 9566 bytes test/tests/recognizePDFTest.js | 35 +++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 test/tests/data/recognizePDF_test_DOI.pdf diff --git a/test/tests/data/recognizePDF_test_DOI.pdf b/test/tests/data/recognizePDF_test_DOI.pdf new file mode 100644 index 0000000000000000000000000000000000000000..8b75beea173c7e46a2f41ee59a97bbec7833ca4a GIT binary patch literal 9566 zcmbt)XIN9)wzdMIgboTKEi{pugai_L2kBL$BPBo(2!tRV#0XNPgGg7ZB1L+asx+xm zl_phs?+9PmXPRKX6 zk+|>GtdSj}C5@)00nhT1-Y!8Lvc;=Pl8bpYR&(UG0w$Hk^Y+fOE`<7SA)9j!8|tv~ zt*X;z9htDaDg6jR|(*^svZ(Fv3 zkU!u}0Hm|cpAO?^moWk^L%W)(`zJX+lzNg`WkpW!<^?=1DZ-!JWk7@l&n>>vFRbL;mtA# z487Nun_L+2kvBN|+UViM+HJPab0jLaU%1_rKI6WoLd&WK-w3g=zTtk#@MVP+j=n+G z%(mfoP#Ko!EfWWs&dpBNnKhqz>N5$Ibgrw}HOSTe^8hYT91A8!f+LN?gY7rKi*VhN zQ)5(CE4KR{su-Ix6y}S5Q@(B^Zl z6SQ1|qDgY4^lar=yqjHr$Xn!m%QnU^9Twl!*wUz`*Zj7RNuRj3)Ik^8guzgHS%{*# zI8A7FI_UKH)?X!t_c?523~_<-d^$zr$H@YkT`7z!>yn z;)3e0KcqV3=2TkhOaRkAH0U0lXDDU#mZVz<803E0P0xj37qEmCfYUr z?)|)yqJ{xDwg%^O$xdpm9Ogaw;Fl3#-e|~@$3I^Da+>lu^mO5@9%@nPncF1N=wI?( zSy_~itfY707Gk{mwu)2>D%Hav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