Skip to content

Commit 3b743d7

Browse files
spiral-matrix: fix
1 parent e2a39ac commit 3b743d7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

exercises/practice/spiral-matrix/.meta/Generator.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class {{ testClass }}
99
{{- if test.expected.empty? }}
1010
Assert.Empty({{ testedClass }}.GetMatrix({{ test.input.size }}));
1111
{{ else }}
12-
int[,] expected = new[,]
12+
int[,] expected =
1313
{
1414
{{- for row in test.expected }}
1515
{ {{ row | array.join ", " }} }{{- if !for.last }},{{ end -}}

exercises/practice/spiral-matrix/SpiralMatrixTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public void Empty_spiral()
1111
[Fact(Skip = "Remove this Skip property to run this test")]
1212
public void Trivial_spiral()
1313
{
14-
int[,] expected = new[,]
14+
int[,] expected =
1515
{
1616
{ 1 }
1717
};
@@ -21,7 +21,7 @@ public void Trivial_spiral()
2121
[Fact(Skip = "Remove this Skip property to run this test")]
2222
public void Spiral_of_size_2()
2323
{
24-
int[,] expected = new[,]
24+
int[,] expected =
2525
{
2626
{ 1, 2 },
2727
{ 4, 3 }
@@ -32,7 +32,7 @@ public void Spiral_of_size_2()
3232
[Fact(Skip = "Remove this Skip property to run this test")]
3333
public void Spiral_of_size_3()
3434
{
35-
int[,] expected = new[,]
35+
int[,] expected =
3636
{
3737
{ 1, 2, 3 },
3838
{ 8, 9, 4 },
@@ -44,7 +44,7 @@ public void Spiral_of_size_3()
4444
[Fact(Skip = "Remove this Skip property to run this test")]
4545
public void Spiral_of_size_4()
4646
{
47-
int[,] expected = new[,]
47+
int[,] expected =
4848
{
4949
{ 1, 2, 3, 4 },
5050
{ 12, 13, 14, 5 },
@@ -57,7 +57,7 @@ public void Spiral_of_size_4()
5757
[Fact(Skip = "Remove this Skip property to run this test")]
5858
public void Spiral_of_size_5()
5959
{
60-
int[,] expected = new[,]
60+
int[,] expected =
6161
{
6262
{ 1, 2, 3, 4, 5 },
6363
{ 16, 17, 18, 19, 6 },

0 commit comments

Comments
 (0)