Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
chg - Fixed test build failure
Browse files Browse the repository at this point in the history
---

Type: chg
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Apr 22, 2024
1 parent e40602c commit d25b825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Figletize.Generator.Tests/FigletizeSourceGeneratorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,6 @@ public int GetHashCode(string obj)
return StringComparer.Ordinal.GetHashCode(Normalize(obj));
}

[return: NotNullIfNotNull("s")]
private static string Normalize(string s) => s?.Replace("\r", "");
private static string Normalize(string s) => s?.Replace("\r", "") ?? "";
}
}
2 changes: 1 addition & 1 deletion Figletize.Tests/FigletizeFontTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void RenderByFontInstance()
void Test(FigletizeFont font, string s, int? smushOverride = null, params string[] expected)
{
var output = font.Render(s, smushOverride);
var actual = output.Split(Environment.NewLine);
var actual = output.Split([Environment.NewLine], StringSplitOptions.None);
actual.Length.ShouldBe(expected.Length);
for (var i = 0; i < expected.Length; i++)
{
Expand Down

0 comments on commit d25b825

Please sign in to comment.