File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test/scala/exercises/stdlib Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,8 @@ object Asserts extends FlatSpec with Matchers with exercise.Section {
4444
4545 /** Booleans in asserts can test equality.
4646 */
47- def booleansAsserts (res0 : String ) {
47+ def booleanAsserts (res0 : Int ) {
4848 val v1 = 4
49- val v2 = 4
5049 v1 === res0
5150
5251 /** `===` is an assert. It is from ScalaTest, not from the Scala language. */
Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ class AssertsSpec extends Spec with Checkers {
1313 check(Test .testSuccess(Asserts .scalaTestAsserts _, true :: HNil ))
1414 }
1515
16- // FIXME: depends on #259
17- // check(testSuccess(Asserts.booleansAsserts _, HNil))
16+ def `boolean asserts` = {
17+ check(Test .testSuccess(Asserts .booleanAsserts _, 4 :: HNil ))
18+ }
1819
1920 def `values asserts` = {
2021 check(Test .testSuccess(Asserts .valuesAsserts _, 2 :: HNil ))
You can’t perform that action at this time.
0 commit comments