Skip to content

Commit 4b24d8c

Browse files
committed
Fix and enable stringrenderer_test
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent a6da642 commit 4b24d8c

File tree

3 files changed

+96
-75
lines changed

3 files changed

+96
-75
lines changed

unittest/Makefile.am

+4
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ check_PROGRAMS = \
124124
progress_test \
125125
qrsequence_test \
126126
rect_test \
127+
stringrenderer_test \
127128
stats_test \
128129
tablefind_test \
129130
tablerecog_test \
@@ -242,6 +243,9 @@ qrsequence_test_LDADD = $(ABSEIL_LIBS) $(GTEST_LIBS) $(TESS_LIBS)
242243
rect_test_SOURCES = rect_test.cc
243244
rect_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
244245

246+
stringrenderer_test_SOURCES = stringrenderer_test.cc
247+
stringrenderer_test_LDADD = $(ABSEIL_LIBS) $(GTEST_LIBS) $(TRAINING_LIBS) $(TESS_LIBS) $(ICU_I18N_LIBS) $(ICU_UC_LIBS) -lfontconfig -lpangocairo-1.0 -lpangoft2-1.0 $(cairo_LIBS) $(pango_LIBS)
248+
245249
stats_test_SOURCES = stats_test.cc
246250
stats_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
247251

unittest/include_gunit.h

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class file : public tesseract::File {
5353
#define ARRAYSIZE(arr) (sizeof(arr) / sizeof(arr[0]))
5454
#define CHECK(test) ASSERT_HOST(test)
5555
#define CHECK_GT(test, value) ASSERT_HOST((test) > (value))
56+
#define CHECK_LT(test, value) ASSERT_HOST((test) < (value))
5657
#define CHECK_OK(test) ASSERT_HOST(test)
5758

5859
#endif // TESSERACT_UNITTEST_INCLUDE_GUNIT_H_

0 commit comments

Comments
 (0)