Skip to content

Commit

Permalink
unittest: Fix and enable tabvector_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 26, 2018
1 parent aac0083 commit 8e40467
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions unittest/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ check_PROGRAMS = \
stats_test \
tablefind_test \
tablerecog_test \
tabvector_test \
tesseracttests

TESTS = $(check_PROGRAMS)
Expand Down Expand Up @@ -135,6 +136,9 @@ tablefind_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
tablerecog_test_SOURCES = tablerecog_test.cc
tablerecog_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)

tabvector_test_SOURCES = tabvector_test.cc
tabvector_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)

tesseracttests_SOURCES = ../tests/tesseracttests.cpp
tesseracttests_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)

Expand Down
14 changes: 13 additions & 1 deletion unittest/tabvector_test.cc
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
// (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 <memory>

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

#include "include_gunit.h"

using tesseract::TabVector;

Expand Down

0 comments on commit 8e40467

Please sign in to comment.