Skip to content

Commit

Permalink
Update change to match latest canonical json.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricemery committed Feb 17, 2018
1 parent 44795a6 commit 8305516
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions exercises/change/src/test/scala/ChangeTest.scala
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import org.scalatest.{Matchers, FunSuite}

/** @version 1.1.0 */
/** @version 1.2.0 */
class ChangeTest extends FunSuite with Matchers {

test("single coin change") {
Change.findFewestCoins(25, List(1, 5, 10, 25, 100)) should be (Some(List(25)))
}
Expand Down
6 changes: 3 additions & 3 deletions testgen/src/main/scala/ChangeTestGenerator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ object ChangeTestGenerator {
}
}

def fromLabeledTest(argNames: String*): ToTestCaseData =
def fromLabeledTestFromInput(argNames: String*): ToTestCaseData =
withLabeledTest { sut =>
labeledTest =>
val args = sutArgs(labeledTest.result, argNames: _*)
val args = sutArgsFromInput(labeledTest.result, argNames: _*)
val property = labeledTest.property
val sutCall =
s"""$sut.$property($args)"""
Expand All @@ -28,7 +28,7 @@ object ChangeTestGenerator {

val code =
TestSuiteBuilder.build(file,
fromLabeledTest("target", "coins"))
fromLabeledTestFromInput("target", "coins"))

println(s"-------------")
println(code)
Expand Down

0 comments on commit 8305516

Please sign in to comment.