Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exercises/practice/diamond/DiamondTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class DiamondTests
{
public static readonly char[] AllLetters = GetLetterRange('A', 'Z');
private static string[] Rows(string x) => x.Split(new[] { '\n' }, StringSplitOptions.None);
private static string[] Rows(string x) => x.Split(Environment.NewLine);

private static string LeadingSpaces(string x) => x.Substring(0, x.IndexOfAny(AllLetters));
private static string TrailingSpaces(string x) => x.Substring(x.LastIndexOfAny(AllLetters) + 1);
Expand Down Expand Up @@ -125,4 +125,4 @@ public static Arbitrary<char> Chars()
{
return Arb.Default.Char().Filter(x => x >= 'A' && x <= 'Z');
}
}
}