mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
Add unittest for static TessBaseAPI object (#3509)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
df1295ea6b
commit
c9f42ce62b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user