Skip to content

Commit 3d38e8c

Browse files
committed
unittest: Fix and enable nthitem_test
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent f876ddb commit 3d38e8c

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

unittest/Makefile.am

+4
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ check_PROGRAMS = \
6363
linlsq_test \
6464
loadlang_test \
6565
matrix_test \
66+
nthitem_test \
6667
osd_test \
6768
progress_test \
6869
tesseracttests
@@ -108,6 +109,9 @@ loadlang_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
108109
matrix_test_SOURCES = matrix_test.cc
109110
matrix_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
110111

112+
nthitem_test_SOURCES = nthitem_test.cc
113+
nthitem_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
114+
111115
osd_test_SOURCES = osd_test.cc
112116
osd_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
113117

unittest/nthitem_test.cc

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1+
// (C) Copyright 2017, Google Inc.
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an "AS IS" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
111

2-
#include "tesseract/ccutil/genericvector.h"
3-
#include "tesseract/ccutil/kdpair.h"
12+
#include "genericvector.h"
13+
#include "kdpair.h"
14+
15+
#include "include_gunit.h"
416

517
namespace tesseract {
618

@@ -96,9 +108,3 @@ TEST_F(NthItemTest, EqualTest) {
96108
}
97109

98110
} // namespace tesseract
99-
100-
101-
102-
103-
104-

0 commit comments

Comments
 (0)