From 3d38e8ceb70a39100b5b491caf7ec91415ed11a3 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 26 Aug 2018 18:22:43 +0200 Subject: [PATCH] unittest: Fix and enable nthitem_test Signed-off-by: Stefan Weil --- unittest/Makefile.am | 4 ++++ unittest/nthitem_test.cc | 22 ++++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/unittest/Makefile.am b/unittest/Makefile.am index dd555e335f..f699720ec7 100644 --- a/unittest/Makefile.am +++ b/unittest/Makefile.am @@ -63,6 +63,7 @@ check_PROGRAMS = \ linlsq_test \ loadlang_test \ matrix_test \ + nthitem_test \ osd_test \ progress_test \ tesseracttests @@ -108,6 +109,9 @@ loadlang_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS) matrix_test_SOURCES = matrix_test.cc matrix_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) +nthitem_test_SOURCES = nthitem_test.cc +nthitem_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) + osd_test_SOURCES = osd_test.cc osd_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS) diff --git a/unittest/nthitem_test.cc b/unittest/nthitem_test.cc index 33d3372df8..5dba7b44d6 100644 --- a/unittest/nthitem_test.cc +++ b/unittest/nthitem_test.cc @@ -1,6 +1,18 @@ +// (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/ccutil/genericvector.h" -#include "tesseract/ccutil/kdpair.h" +#include "genericvector.h" +#include "kdpair.h" + +#include "include_gunit.h" namespace tesseract { @@ -96,9 +108,3 @@ TEST_F(NthItemTest, EqualTest) { } } // namespace tesseract - - - - - -