Skip to content

Commit 5be7f07

Browse files
sonapraneeth-alemoncurry
authored andcommitted
matrix: update to version 1.3.0 (exercism#1742)
* updated matrix exercises to version 1.3.0
1 parent 78c2d3c commit 5be7f07

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

exercises/matrix/.meta/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
1.1.0
1+
1.3.0
22

exercises/matrix/src/test/java/MatrixTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ public void extractRowFromDiffWidthsMatrixTest() {
4444
@Test
4545
public void extractRowFromNonSquareMatrixTest() {
4646
String matrixAsString = "1 2 3\n4 5 6\n7 8 9\n8 7 6";
47-
int rowIndex = 3;
48-
int[] expectedRow = {7, 8, 9};
47+
int rowIndex = 4;
48+
int[] expectedRow = {8, 7, 6};
4949

5050
Matrix matrix = new Matrix(matrixAsString);
5151

@@ -79,9 +79,9 @@ public void extractColumnMatrixTest() {
7979
@Ignore("Remove to run test")
8080
@Test
8181
public void extractColumnFromNonSquareMatrixTest() {
82-
String matrixAsString = "1 2 3\n4 5 6\n7 8 9\n8 7 6";
83-
int columnIndex = 3;
84-
int[] expectedColumn = {3, 6, 9, 6};
82+
String matrixAsString = "1 2 3 4\n5 6 7 8\n9 8 7 6";
83+
int columnIndex = 4;
84+
int[] expectedColumn = {4, 8, 6};
8585

8686
Matrix matrix = new Matrix(matrixAsString);
8787

0 commit comments

Comments
 (0)