Repository navigation
update matrix tests - #1297
update matrix tests#1297
Conversation
FridaTveit
left a comment
There was a problem hiding this comment.
This looks great @jssander! 🙂 There are just a couple of minor things it would be great if you could fix 🙂
| } | ||
|
|
||
| @Test | ||
| public void ExtractRowFromOneNumberMatrixTest() { |
There was a problem hiding this comment.
In java method names should start with a lowercase letter 🙂
There was a problem hiding this comment.
Check out something like this for a couple of cool tips about Java style! 🙂
| public void ExtractRowFromOneNumberMatrixTest() { | ||
| String matrixAsString = "1"; | ||
| int rowIndex = 0; | ||
| int[] row = {1}; |
There was a problem hiding this comment.
A very minor thing, but I think if this is name expectedRow then it makes the test a bit easier to read 🙂
|
|
||
| @Test | ||
| public void countColumnsTest() { | ||
| assertEquals(numberOfColumns, matrix.getColumnsCount()); |
There was a problem hiding this comment.
Since you've removed these tests you can probably simplify the referece implementation a bit by removing getColumnsCount and getRowsCount 🙂
|
I made the changes you requested. |
FridaTveit
left a comment
There was a problem hiding this comment.
This looks great! Thanks @jssander! 🙂
* update matrix tests * updated matrix tests * updated matrix
I removed all of the old matrix tests which were parameterized and added new tests matching the canonical file which are not parameterized.
I also added a version file.
Reviewer Resources:
Track Policies