From 8e404679c1fe38914fcc6afd525cb13bc81d2bfe Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 26 Aug 2018 19:02:01 +0200 Subject: [PATCH] unittest: Fix and enable tabvector_test Signed-off-by: Stefan Weil --- unittest/Makefile.am | 4 ++++ unittest/tabvector_test.cc | 14 +++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/unittest/Makefile.am b/unittest/Makefile.am index ad5ac3708d..ebc71a9294 100644 --- a/unittest/Makefile.am +++ b/unittest/Makefile.am @@ -70,6 +70,7 @@ check_PROGRAMS = \ stats_test \ tablefind_test \ tablerecog_test \ + tabvector_test \ tesseracttests TESTS = $(check_PROGRAMS) @@ -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) diff --git a/unittest/tabvector_test.cc b/unittest/tabvector_test.cc index 59849b0ec5..4c97264bc7 100644 --- a/unittest/tabvector_test.cc +++ b/unittest/tabvector_test.cc @@ -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 -#include "tesseract/textord/tabvector.h" +#include "tabvector.h" + +#include "include_gunit.h" using tesseract::TabVector;