Skip to content

Commit

Permalink
Fix fake OcrResult creation
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Mar 28, 2024
1 parent c07bcdd commit 46577c6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions NAPS2.Sdk.Tests/ContextualTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ public void SetUpFakeOcr(Dictionary<IMemoryImage, string> ocrTextByImage = null,
OcrResult CreateOcrResult(string text)
{
var list = ImmutableList.Create(
new OcrResultElement(text, ocrParams.LanguageCode!, false,
(10, 10, 10, 10), 0, 10, ImmutableList<OcrResultElement>.Empty));
var word = new OcrResultElement(text, ocrParams.LanguageCode!, false,
(10, 10, 10, 10), 20, 10, ImmutableList<OcrResultElement>.Empty);
var line = new OcrResultElement(text, ocrParams.LanguageCode!, false,
(10, 10, 10, 10), 20, 10, ImmutableList.Create(word));
var list = ImmutableList.Create(line);
return new((0, 0, 100, 100), list, list);
}
Expand Down

0 comments on commit 46577c6

Please sign in to comment.