Improve disable legacy build (#3648)

resultiterator_test: Disable SmallCapDropCapTest

Co-authored-by: Shree Devi Kumar <5095331+Shreeshrii@users.noreply.github.com>
This commit is contained in:
Amit D 2021-11-18 16:07:55 +02:00 committed by GitHub
parent 981c167f8c
commit ff11f5dc65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,6 +357,10 @@ TEST_F(ResultIteratorTest, GreyTest) {
// Tests that Tesseract gets smallcaps and dropcaps.
TEST_F(ResultIteratorTest, SmallCapDropCapTest) {
#ifdef DISABLED_LEGACY_ENGINE
// Skip test as LSTM mode does not recognize smallcaps & dropcaps attributes.
GTEST_SKIP();
#else
SetImage("8071_093.3B.tif");
char *result = api_.GetUTF8Text();
delete[] result;
@ -404,6 +408,7 @@ TEST_F(ResultIteratorTest, SmallCapDropCapTest) {
EXPECT_EQ(1, found_dropcaps);
EXPECT_GE(4, found_smallcaps);
EXPECT_LE(false_positives, 3);
#endif // def DISABLED_LEGACY_ENGINE
}
#if 0