Skip to content

Commit bb101de

Browse files
committed
unittest: Fix and enable colpartition_test
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 68db6aa commit bb101de

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

unittest/Makefile.am

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ check_PROGRAMS = \
5454
apiexample_test \
5555
bitvector_test \
5656
cleanapi_test \
57+
colpartition_test \
5758
progress_test \
5859
intsimdmatrix_test \
5960
matrix_test \
@@ -75,6 +76,9 @@ bitvector_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
7576
cleanapi_test_SOURCES = cleanapi_test.cc
7677
cleanapi_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
7778

79+
colpartition_test_SOURCES = colpartition_test.cc
80+
colpartition_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
81+
7882
progress_test_SOURCES = progress_test.cc
7983
progress_test_LDFLAGS = $(OPENCL_LDFLAGS) $(LEPTONICA_LIBS)
8084
progress_test_LDADD = $(GTEST_LIBS) $(GMOCK_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)

unittest/colpartition_test.cc

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
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/textord/colpartition.h"
12+
#include "colpartition.h"
13+
14+
#include "include_gunit.h"
315

416
using tesseract::ColPartition;
517

@@ -63,5 +75,4 @@ TEST_F(ColPartitionTest, IsInSameColumnAsPartialOverlap) {
6375
EXPECT_TRUE(b.IsInSameColumnAs(a));
6476
}
6577

66-
6778
} // namespace

0 commit comments

Comments
 (0)