mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Added unit test for #1951
This commit is contained in:
parent
246d95a4c4
commit
e4850c4c89
@ -576,6 +576,19 @@ namespace Test
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void FixOcrErrorsViaHardcodedRules2()
|
||||
{
|
||||
using (var form = new GoToLine())
|
||||
{
|
||||
Configuration.Settings.Tools.OcrFixUseHardcodedRules = true;
|
||||
const string input = "Foobar\r\n<i>-";
|
||||
var ofe = new Nikse.SubtitleEdit.Logic.Ocr.OcrFixEngine("eng", "us_en", form);
|
||||
var res = ofe.FixOcrErrorsViaHardcodedRules(input, "Previous line.", new HashSet<string>());
|
||||
Assert.AreEqual(res, "Foobar\r\n<i>-");
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[DeploymentItem("SubtitleEdit.exe")]
|
||||
public void FixOcrErrorsViaDoNotFixToUpper()
|
||||
|
Loading…
Reference in New Issue
Block a user