diff --git a/src/Test/FixCommonErrorsTest.cs b/src/Test/FixCommonErrorsTest.cs index 56de58ece..7c26ce814 100644 --- a/src/Test/FixCommonErrorsTest.cs +++ b/src/Test/FixCommonErrorsTest.cs @@ -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-"; + var ofe = new Nikse.SubtitleEdit.Logic.Ocr.OcrFixEngine("eng", "us_en", form); + var res = ofe.FixOcrErrorsViaHardcodedRules(input, "Previous line.", new HashSet()); + Assert.AreEqual(res, "Foobar\r\n-"); + } + } + [TestMethod] [DeploymentItem("SubtitleEdit.exe")] public void FixOcrErrorsViaDoNotFixToUpper()