Skip to content

Commit

Permalink
unittest: Fix and enable colpartition_test
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Aug 25, 2018
1 parent 95fdbf1 commit ff22280
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 4 additions & 0 deletions unittest/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ check_PROGRAMS = \
apiexample_test \
bitvector_test \
cleanapi_test \
colpartition_test \
progress_test \
intsimdmatrix_test \
matrix_test \
Expand All @@ -75,6 +76,9 @@ bitvector_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
cleanapi_test_SOURCES = cleanapi_test.cc
cleanapi_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)

colpartition_test_SOURCES = colpartition_test.cc
colpartition_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)

progress_test_SOURCES = progress_test.cc
progress_test_LDFLAGS = $(OPENCL_LDFLAGS) $(LEPTONICA_LIBS)
progress_test_LDADD = $(GTEST_LIBS) $(GMOCK_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
Expand Down
15 changes: 13 additions & 2 deletions unittest/colpartition_test.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
// (C) Copyright 2017, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "tesseract/textord/colpartition.h"
#include "colpartition.h"

#include "include_gunit.h"

using tesseract::ColPartition;

Expand Down Expand Up @@ -63,5 +75,4 @@ TEST_F(ColPartitionTest, IsInSameColumnAsPartialOverlap) {
EXPECT_TRUE(b.IsInSameColumnAs(a));
}


} // namespace

0 comments on commit ff22280

Please sign in to comment.