未验证 提交 c9f42ce6 编写于 作者: S Stefan Weil 提交者: GitHub

Add unittest for static TessBaseAPI object (#3509)

Signed-off-by: NStefan Weil <sw@weilnetz.de>
上级 df1295ea
......@@ -64,6 +64,12 @@ protected:
}
};
// Test static TessBaseAPI (like it is used by tesserocr).
TEST_F(TesseractTest, StaticTessBaseAPI) {
static tesseract::TessBaseAPI api;
api.End();
}
// Tests that Tesseract gets exactly the right answer on phototest.
TEST_F(TesseractTest, BasicTesseractTest) {
tesseract::TessBaseAPI api;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册