11import org .junit .jupiter .api .Disabled ;
2+ import org .junit .jupiter .api .DisplayName ;
23import org .junit .jupiter .api .Test ;
34
45import java .util .ArrayList ;
1213public class MatrixTest {
1314
1415 @ Test
16+ @ DisplayName ("Can identify single saddle point" )
1517 public void testCanIdentifySingleSaddlePoint () {
1618 Matrix matrix = new Matrix (Arrays .asList (
1719 Arrays .asList (9 , 8 , 7 ),
@@ -26,6 +28,7 @@ public void testCanIdentifySingleSaddlePoint() {
2628
2729 @ Disabled ("Remove to run test" )
2830 @ Test
31+ @ DisplayName ("Can identify that empty matrix has no saddle points" )
2932 public void testCanIdentifyThatEmptyMatrixHasNoSaddlePoints () {
3033 Matrix matrix = new Matrix (new ArrayList <>());
3134
@@ -36,6 +39,7 @@ public void testCanIdentifyThatEmptyMatrixHasNoSaddlePoints() {
3639
3740 @ Disabled ("Remove to run test" )
3841 @ Test
42+ @ DisplayName ("Can identify lack of saddle points when there are none" )
3943 public void testCanIdentifyLackOfSaddlePointsWhenThereAreNone () {
4044 Matrix matrix = new Matrix (Arrays .asList (
4145 Arrays .asList (1 , 2 , 3 ),
@@ -50,6 +54,7 @@ public void testCanIdentifyLackOfSaddlePointsWhenThereAreNone() {
5054
5155 @ Disabled ("Remove to run test" )
5256 @ Test
57+ @ DisplayName ("Can identify multiple saddle points in a column" )
5358 public void testCanIdentifyMultipleSaddlePointsInAColumn () {
5459 Matrix matrix = new Matrix (Arrays .asList (
5560 Arrays .asList (4 , 5 , 4 ),
@@ -68,6 +73,7 @@ public void testCanIdentifyMultipleSaddlePointsInAColumn() {
6873
6974 @ Disabled ("Remove to run test" )
7075 @ Test
76+ @ DisplayName ("Can identify multiple saddle points in a Row" )
7177 public void testCanIdentifyMultipleSaddlePointsInARow () {
7278 Matrix matrix = new Matrix (Arrays .asList (
7379 Arrays .asList (6 , 7 , 8 ),
@@ -86,6 +92,7 @@ public void testCanIdentifyMultipleSaddlePointsInARow() {
8692
8793 @ Disabled ("Remove to run test" )
8894 @ Test
95+ @ DisplayName ("Can identify saddle point in bottom right corner" )
8996 public void testCanIdentifySaddlePointInBottomRightCorner () {
9097 Matrix matrix = new Matrix (Arrays .asList (
9198 Arrays .asList (8 , 7 , 9 ),
@@ -100,6 +107,7 @@ public void testCanIdentifySaddlePointInBottomRightCorner() {
100107
101108 @ Disabled ("Remove to run test" )
102109 @ Test
110+ @ DisplayName ("Can identify saddle points in a non square matrix" )
103111 public void testCanIdentifySaddlePointsInANonSquareMatrix () {
104112 Matrix matrix = new Matrix (Arrays .asList (
105113 Arrays .asList (3 , 1 , 3 ),
@@ -116,6 +124,7 @@ public void testCanIdentifySaddlePointsInANonSquareMatrix() {
116124
117125 @ Disabled ("Remove to run test" )
118126 @ Test
127+ @ DisplayName ("Can identify that saddle points in a single column matrix are those with the minimum value" )
119128 public void testCanIdentifyThatSaddlePointsInASingleColumnMatrixAreThoseWithMinimumValue () {
120129 Matrix matrix = new Matrix (Arrays .asList (
121130 Collections .singletonList (2 ),
@@ -134,6 +143,7 @@ public void testCanIdentifyThatSaddlePointsInASingleColumnMatrixAreThoseWithMini
134143
135144 @ Disabled ("Remove to run test" )
136145 @ Test
146+ @ DisplayName ("Can identify that saddle points in a single row matrix are those with the maximum value" )
137147 public void testCanIdentifyThatSaddlePointsInASingleRowMatrixAreThoseWithMaximumValue () {
138148 Matrix matrix = new Matrix (Arrays .asList (
139149 Arrays .asList (2 , 5 , 3 , 5 )
0 commit comments