Skip to content

Commit

Permalink
unittest: Fix and enable nthitem_test
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Aug 26, 2018
1 parent f876ddb commit 3d38e8c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
4 changes: 4 additions & 0 deletions unittest/Makefile.am
Expand Up @@ -63,6 +63,7 @@ check_PROGRAMS = \
linlsq_test \
loadlang_test \
matrix_test \
nthitem_test \
osd_test \
progress_test \
tesseracttests
Expand Down Expand Up @@ -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)

Expand Down
22 changes: 14 additions & 8 deletions 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 {

Expand Down Expand Up @@ -96,9 +108,3 @@ TEST_F(NthItemTest, EqualTest) {
}

} // namespace tesseract






0 comments on commit 3d38e8c

Please sign in to comment.