Skip to content

Commit 3844aaf

Browse files
author
Kirill Makankov
committed
1. Forgot to add tesseract-rus to the project resources
2. Fixed typos
1 parent 86c1cf3 commit 3844aaf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

TestsProject/TestsProject.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
41C68DB51A41854600848AE1 /* image_sample_tr.png in Resources */ = {isa = PBXBuildFile; fileRef = 41C68DB41A41854600848AE1 /* image_sample_tr.png */; };
2929
732C54761A514DA6000322DA /* InitializationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 732C54751A514DA5000322DA /* InitializationTests.m */; };
3030
732C54791A5288CC000322DA /* Defaults.m in Sources */ = {isa = PBXBuildFile; fileRef = 732C54781A5288CC000322DA /* Defaults.m */; };
31+
736EFF271A5882730031B432 /* tessdata-rus in Resources */ = {isa = PBXBuildFile; fileRef = 736EFF231A5872CA0031B432 /* tessdata-rus */; };
3132
8FA2F9CE23919BEC8C64A5EA /* libPods-TestsProjectTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5CD3C116A45C293ADAC81D1B /* libPods-TestsProjectTests.a */; };
3233
/* End PBXBuildFile section */
3334

@@ -295,6 +296,7 @@
295296
4141211E1A4B1E3900583ED4 /* image_blank.png in Resources */,
296297
41C68DB51A41854600848AE1 /* image_sample_tr.png in Resources */,
297298
41184B591A3EFD41007F5923 /* tessdata in Resources */,
299+
736EFF271A5882730031B432 /* tessdata-rus in Resources */,
298300
412E9EAD1A45872A007DDAA5 /* image_sample_bl.png in Resources */,
299301
);
300302
runOnlyForDeploymentPostprocessing = 0;

TestsProject/TestsProjectTests/InitializationTests.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,14 @@
185185
}
186186

187187
// initialize with rus now
188-
G8Tesseract *rusResseract = [[G8Tesseract alloc] initWithLanguage:@"rus"
188+
G8Tesseract *rusTesseract = [[G8Tesseract alloc] initWithLanguage:@"rus"
189189
configDictionary:nil
190190
configFileNames:nil
191191
cachesRelatedDataPath:tessdataPath
192192
engineMode:G8OCREngineModeTesseractOnly];
193-
[[rusResseract shouldNot] beNil];
193+
[[rusTesseract shouldNot] beNil];
194194

195-
[[rusResseract.absoluteDataPath should] equal:cachesTessDataPath];
195+
[[rusTesseract.absoluteDataPath should] equal:cachesTessDataPath];
196196
});
197197

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

0 commit comments

Comments
 (0)