File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class Day04Suite extends ScalaCheckSuite:
3232 property(" Grid |allPositions| = rows * columns" ):
3333 forAll(nonEmptyGridGen)(neg => assertEquals(neg.allPositions.length, neg.rows.length * neg.rows.head.length))
3434
35- test(" topLeftPositions example" ):
35+ test(" horizontalPositions example" ):
3636 assertEquals(
3737 Grid .horizontalPositions(Word (" XYZ" ))(from = Pos (row = 2 , col = 4 )),
3838 List (
@@ -42,6 +42,16 @@ class Day04Suite extends ScalaCheckSuite:
4242 )
4343 )
4444
45+ test(" verticalPositions example" ):
46+ assertEquals(
47+ Grid .verticalPositions(Word (" XYZ" ))(from = Pos (row = 2 , col = 4 )),
48+ List (
49+ Pos (row = 2 , col = 4 ),
50+ Pos (row = 3 , col = 4 ),
51+ Pos (row = 4 , col = 4 )
52+ )
53+ )
54+
4555 test(" ascDiagonalPositions example" ):
4656 assertEquals(
4757 Grid .ascDiagonalPositions(Word (" XYZ" ))(from = Pos (row = 2 , col = 4 )),
You can’t perform that action at this time.
0 commit comments