mirror of https://github.com/sbt/sbt.git
use new input task syntax for project/settings
This commit is contained in:
parent
f388b07632
commit
230a13d010
|
|
@ -1,8 +1,11 @@
|
|||
import complete.DefaultParsers._
|
||||
|
||||
InputKey[Unit]("check") <<= InputTask(_ => Space ~> IntBasic) { result =>
|
||||
(result, maxErrors) map { (expected, actual) =>
|
||||
assert(expected == actual, "Expected " + expected + ", got " + actual)
|
||||
}
|
||||
val check = inputKey[Unit]("Check that the value of maxErrors is as expected")
|
||||
val parser = Space ~> IntBasic
|
||||
|
||||
check := {
|
||||
val expected = parser.parsed
|
||||
val actual = maxErrors.value
|
||||
assert(expected == actual, "Expected " + expected + ", got " + actual)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue