Skip to content

Commit

Permalink
Merge pull request #595 from ricemery/alphametics
Browse files Browse the repository at this point in the history
Update alphametics tests to match latest test data. Refs #488
  • Loading branch information
ErikSchierboom committed Jan 1, 2019
2 parents ab17bcd + 9bdebe2 commit f8be82c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion exercises/alphametics/src/test/scala/AlphameticsTest.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import org.scalatest.{Matchers, FunSuite}

/** @version 1.2.0 */
/** @version 1.3.0 */
class AlphameticsTest extends FunSuite with Matchers {

test("puzzle with three letters") {
Expand All @@ -18,6 +18,12 @@ class AlphameticsTest extends FunSuite with Matchers {
Alphametics.solve("ACA + DD == BD") should be(None)
}

test("puzzle with two digits final carry") {
pending
Alphametics.solve("A + A + A + A + A + A + A + A + A + A + A + B == BCC") should be(
Some(Map('A' -> 9, 'B' -> 1, 'C' -> 0)))
}

test("puzzle with four letters") {
pending
Alphametics.solve("AS + A == MOM") should be(
Expand Down

0 comments on commit f8be82c

Please sign in to comment.