Skip to content

Commit

Permalink
Add two additional test cases to OcrNumbersTest
Browse files Browse the repository at this point in the history
  • Loading branch information
citizen428 committed Dec 22, 2024
1 parent 0bf8ef8 commit 184cfa1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions exercises/practice/ocr-numbers/src/test/scala/OcrNumbersTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ class OcrNumbersTest extends AnyFunSuite with Matchers {
" ")) should be(Some("?"))
}

test("Input with no lines returns None") {
pending
OcrNumbers.convert(List()) should be(None)
}

test(
"Input with a number of lines that is not a multiple of four returns None") {
pending
Expand All @@ -36,6 +41,12 @@ class OcrNumbersTest extends AnyFunSuite with Matchers {
" ")) should be(None)
}

test("Input with empty columns returns None") {
pending
OcrNumbers.convert(List("", "", "", "")) should be(None)
}


test(
"Input with a number of columns that is not a multiple of three returns None") {
pending
Expand Down

0 comments on commit 184cfa1

Please sign in to comment.