Skip to content

Commit 184cfa1

Browse files
committed
Add two additional test cases to OcrNumbersTest
1 parent 0bf8ef8 commit 184cfa1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

exercises/practice/ocr-numbers/src/test/scala/OcrNumbersTest.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ class OcrNumbersTest extends AnyFunSuite with Matchers {
2828
" ")) should be(Some("?"))
2929
}
3030

31+
test("Input with no lines returns None") {
32+
pending
33+
OcrNumbers.convert(List()) should be(None)
34+
}
35+
3136
test(
3237
"Input with a number of lines that is not a multiple of four returns None") {
3338
pending
@@ -36,6 +41,12 @@ class OcrNumbersTest extends AnyFunSuite with Matchers {
3641
" ")) should be(None)
3742
}
3843

44+
test("Input with empty columns returns None") {
45+
pending
46+
OcrNumbers.convert(List("", "", "", "")) should be(None)
47+
}
48+
49+
3950
test(
4051
"Input with a number of columns that is not a multiple of three returns None") {
4152
pending

0 commit comments

Comments
 (0)