mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Fix unit test
This commit is contained in:
parent
6026ab6989
commit
c4fce564d7
@ -1287,7 +1287,7 @@ To use an API key go to "Options -> Settings -> Tools" to enter your Googl
|
|||||||
<TranslateSelectedLines>Translate selected lines...</TranslateSelectedLines>
|
<TranslateSelectedLines>Translate selected lines...</TranslateSelectedLines>
|
||||||
<AdjustDisplayDurationForSelectedLines>Adjust durations for selected lines...</AdjustDisplayDurationForSelectedLines>
|
<AdjustDisplayDurationForSelectedLines>Adjust durations for selected lines...</AdjustDisplayDurationForSelectedLines>
|
||||||
<ApplyDurationLimitsForSelectedLines>Apply duration limits for selected lines...</ApplyDurationLimitsForSelectedLines>
|
<ApplyDurationLimitsForSelectedLines>Apply duration limits for selected lines...</ApplyDurationLimitsForSelectedLines>
|
||||||
<ApplyCustomOverrideTag>Apply custom override tag...</ApplyCustomOverrideTag>
|
<ApplyCustomOverrideTag>Apply custom override tags...</ApplyCustomOverrideTag>
|
||||||
<FixCommonErrorsInSelectedLines>Fix common errors in selected lines...</FixCommonErrorsInSelectedLines>
|
<FixCommonErrorsInSelectedLines>Fix common errors in selected lines...</FixCommonErrorsInSelectedLines>
|
||||||
<ChangeCasingForSelectedLines>Change casing for selected lines...</ChangeCasingForSelectedLines>
|
<ChangeCasingForSelectedLines>Change casing for selected lines...</ChangeCasingForSelectedLines>
|
||||||
<SaveSelectedLines>Save selected lines as...</SaveSelectedLines>
|
<SaveSelectedLines>Save selected lines as...</SaveSelectedLines>
|
||||||
|
@ -68,9 +68,9 @@ namespace Test.Logic
|
|||||||
public void AutoBreakFrenchSpaceBeforePunctuation()
|
public void AutoBreakFrenchSpaceBeforePunctuation()
|
||||||
{
|
{
|
||||||
Configuration.Settings.General.SubtitleLineMaximumLength = 43;
|
Configuration.Settings.General.SubtitleLineMaximumLength = 43;
|
||||||
string s1 = "Et elle te le dis maintenant ? Pour quoi donc ?";
|
string s1 = "Et elle te le dis maintenant ? Pour quoi donc donc ?";
|
||||||
string s2 = Utilities.AutoBreakLine(s1, "fr");
|
string s2 = Utilities.AutoBreakLine(s1, "fr");
|
||||||
Assert.AreEqual("Et elle te le dis maintenant ?" + Environment.NewLine + "Pour quoi donc ?", s2);
|
Assert.AreEqual("Et elle te le dis maintenant ?" + Environment.NewLine + "Pour quoi donc donc ?", s2);
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
Loading…
Reference in New Issue
Block a user