File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
test/scala/exercises/stdlib Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,11 @@ 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
50- v1 === res0
49+ v1 shouldEqual res0
5150
52- /** `=== ` is an assert . It is from ScalaTest, not from the Scala language. */
51+ /** `shouldEqual ` is an assertion . It is from ScalaTest, not from the Scala language. */
5352 }
5453
5554 /** Sometimes we expect you to fill in the values
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