Skip to content

Commit 2dc0b68

Browse files
committed
unittest: Fix and enable denorm_test
Signed-off-by: Stefan Weil <[email protected]>
1 parent bb101de commit 2dc0b68

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

unittest/Makefile.am

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ check_PROGRAMS = \
5555
bitvector_test \
5656
cleanapi_test \
5757
colpartition_test \
58+
denorm_test \
5859
progress_test \
5960
intsimdmatrix_test \
6061
matrix_test \
@@ -79,6 +80,9 @@ cleanapi_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
7980
colpartition_test_SOURCES = colpartition_test.cc
8081
colpartition_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
8182

83+
denorm_test_SOURCES = denorm_test.cc
84+
denorm_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
85+
8286
progress_test_SOURCES = progress_test.cc
8387
progress_test_LDFLAGS = $(OPENCL_LDFLAGS) $(LEPTONICA_LIBS)
8488
progress_test_LDADD = $(GTEST_LIBS) $(GMOCK_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)

unittest/denorm_test.cc

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
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

2-
#include "tesseract/ccstruct/blobs.h"
3-
#include "tesseract/ccstruct/normalis.h"
12+
#include "blobs.h"
13+
#include "normalis.h"
14+
15+
#include "include_gunit.h"
416

517
namespace {
618

0 commit comments

Comments
 (0)