@@ -17,9 +17,9 @@ var rawMatrix = [][]Coordinate{
17
17
{c (0 , 4 ), c (1 , 4 ), c (2 , 4 ), c (3 , 4 )},
18
18
}
19
19
var matrix = Matrix [Coordinate ]{
20
- matrix : rawMatrix ,
21
- MaxX : 3 ,
22
- MaxY : 4 ,
20
+ RawMatrix : rawMatrix ,
21
+ MaxX : 3 ,
22
+ MaxY : 4 ,
23
23
}
24
24
25
25
func TestNewMatrixFromRows (t * testing.T ) {
@@ -38,7 +38,7 @@ func TestNewMatrixFromRows(t *testing.T) {
38
38
t .Errorf ("Expected MaxY=%d, but was %d" , matrix .MaxY , testMatrix .MaxY )
39
39
}
40
40
41
- for y , tmRow := range testMatrix .matrix {
41
+ for y , tmRow := range testMatrix .RawMatrix {
42
42
for x , actual := range tmRow {
43
43
expected := rawMatrix [y ][x ]
44
44
if actual != expected {
@@ -57,7 +57,7 @@ func TestNewMatrixFromRows(t *testing.T) {
57
57
t .Errorf ("Expected error '%s' but got %v" , errorMsg , err )
58
58
}
59
59
60
- if testMatrix .MaxX != 0 && testMatrix .MaxY != 0 && len (testMatrix .matrix ) != 0 {
60
+ if testMatrix .MaxX != 0 && testMatrix .MaxY != 0 && len (testMatrix .RawMatrix ) != 0 {
61
61
t .Errorf ("Expected zero-matrix in response, but was %q" , testMatrix )
62
62
}
63
63
})
@@ -71,7 +71,7 @@ func TestNewMatrixFromRows(t *testing.T) {
71
71
t .Errorf ("Expected error '%s' but got %v" , errorMsg , err )
72
72
}
73
73
74
- if testMatrix .MaxX != 0 && testMatrix .MaxY != 0 && len (testMatrix .matrix ) != 0 {
74
+ if testMatrix .MaxX != 0 && testMatrix .MaxY != 0 && len (testMatrix .RawMatrix ) != 0 {
75
75
t .Errorf ("Expected zero-matrix in response, but was %q" , testMatrix )
76
76
}
77
77
})
@@ -99,7 +99,7 @@ func TestNewCharMatrix(t *testing.T) {
99
99
t .Errorf ("Expected MaxY=2, but was %d" , testMatrix .MaxY )
100
100
}
101
101
102
- for y , tmRow := range testMatrix .matrix {
102
+ for y , tmRow := range testMatrix .RawMatrix {
103
103
for x , actual := range tmRow {
104
104
expected := sl [y ][x ]
105
105
if actual != expected {
@@ -118,7 +118,7 @@ func TestNewCharMatrix(t *testing.T) {
118
118
t .Errorf ("Expected error '%s' but got %v" , errorMsg , err )
119
119
}
120
120
121
- if testMatrix .MaxX != 0 && testMatrix .MaxY != 0 && len (testMatrix .matrix ) != 0 {
121
+ if testMatrix .MaxX != 0 && testMatrix .MaxY != 0 && len (testMatrix .RawMatrix ) != 0 {
122
122
t .Errorf ("Expected zero-matrix in response, but was %q" , testMatrix )
123
123
}
124
124
})
@@ -132,7 +132,7 @@ func TestNewCharMatrix(t *testing.T) {
132
132
t .Errorf ("Expected error '%s' but got %v" , errorMsg , err )
133
133
}
134
134
135
- if testMatrix .MaxX != 0 && testMatrix .MaxY != 0 && len (testMatrix .matrix ) != 0 {
135
+ if testMatrix .MaxX != 0 && testMatrix .MaxY != 0 && len (testMatrix .RawMatrix ) != 0 {
136
136
t .Errorf ("Expected zero-matrix in response, but was %q" , testMatrix )
137
137
}
138
138
})
0 commit comments