Skip to content

Commit 8e40467

Browse files
committed
unittest: Fix and enable tabvector_test
Signed-off-by: Stefan Weil <[email protected]>
1 parent aac0083 commit 8e40467

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

unittest/Makefile.am

+4
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ check_PROGRAMS = \
7070
stats_test \
7171
tablefind_test \
7272
tablerecog_test \
73+
tabvector_test \
7374
tesseracttests
7475

7576
TESTS = $(check_PROGRAMS)
@@ -135,6 +136,9 @@ tablefind_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
135136
tablerecog_test_SOURCES = tablerecog_test.cc
136137
tablerecog_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
137138

139+
tabvector_test_SOURCES = tabvector_test.cc
140+
tabvector_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
141+
138142
tesseracttests_SOURCES = ../tests/tesseracttests.cpp
139143
tesseracttests_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
140144

unittest/tabvector_test.cc

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
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

212
#include <memory>
313

4-
#include "tesseract/textord/tabvector.h"
14+
#include "tabvector.h"
15+
16+
#include "include_gunit.h"
517

618
using tesseract::TabVector;
719

0 commit comments

Comments
 (0)