We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b337aa8 commit 4e768bcCopy full SHA for 4e768bc
exercises/practice/diamond/DiamondTests.cs
@@ -7,7 +7,7 @@
7
public class DiamondTests
8
{
9
public static readonly char[] AllLetters = GetLetterRange('A', 'Z');
10
- private static string[] Rows(string x) => x.Split(new[] { '\n' }, StringSplitOptions.None);
+ private static string[] Rows(string x) => x.Split(Environment.NewLine);
11
12
private static string LeadingSpaces(string x) => x.Substring(0, x.IndexOfAny(AllLetters));
13
private static string TrailingSpaces(string x) => x.Substring(x.LastIndexOfAny(AllLetters) + 1);
@@ -125,4 +125,4 @@ public static Arbitrary<char> Chars()
125
126
return Arb.Default.Char().Filter(x => x >= 'A' && x <= 'Z');
127
}
128
-}
+}
0 commit comments