Skip to content

Commit

Permalink
Unit tests for setEngineMode and loadVariables.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Makankov committed Jan 24, 2015
1 parent 17b5959 commit a7cf687
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TestsProject/TestsProjectTests/InitializationTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ - (BOOL)resetEngine;
[[rusTesseract.absoluteDataPath should] equal:cachesTessDataPath];
});

it(@"Should set variables from dictionary", ^{
it(@"Should set variables from dictionary and reinit correctly", ^{

G8Tesseract *tesseract = tesseractInitializedWithTessData();

Expand All @@ -328,6 +328,9 @@ - (BOOL)resetEngine;
// reinit tesseract with different language to check that all the variables are reset after reinitialization
tesseract.language = @"rus";
checkVariablesSetOnRuntime();

tesseract.engineMode = G8OCREngineModeCubeOnly;
checkVariablesSetOnRuntime();
});

it(@"Should initialize with config dictionary", ^{
Expand Down

0 comments on commit a7cf687

Please sign in to comment.