31 const int kRangeSize = 8;
33 int reversed_vals[kRangeSize] = {0, 4, 2, 6, 1, 5, 3, 7};
34 for (
int i = 0; i < kRangeSize; ++i) {
43 std::locale::global(std::locale(
""));
48 const int kRangeSize = GetParam();
50 std::vector<int> vals(kRangeSize);
53 for (
int i = 0; i < kRangeSize; ++i) {
54 vals[i] = generator.
GetVal();
56 LOG(
INFO) << kRangeSize <<
"-length sequence took " << timer.
GetInMs() <<
"ms";
58 std::sort(vals.begin(), vals.end());
59 for (
int i = 0; i < kRangeSize; ++i) {
60 EXPECT_EQ(i, vals[i]);
62 LOG(
INFO) <<
"Aborting remaining comparisons";
70 ::testing::Values(2, 7, 8, 9, 16, 1e2, 1e4, 1e6));
INSTANTIATE_TEST_SUITE_P(Eng, MatchGroundTruth, ::testing::Values("eng"))
TEST_P(MatchGroundTruth, FastPhototestOCR)
TEST(TesseractInstanceTest, TestMultipleTessInstances)
int GetBinaryReversedInteger(int in_val) const
int GetBinaryReversedInteger(int in_val) const
TestableQRSequenceGenerator(const int &N)