File tree 2 files changed +6
-6
lines changed
test/scala/exercises/stdlib
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 {
44
44
45
45
/** Booleans in asserts can test equality.
46
46
*/
47
- def booleansAsserts (res0 : String ) {
47
+ def booleanAsserts (res0 : Int ) {
48
48
val v1 = 4
49
- val v2 = 4
50
- v1 === res0
49
+ v1 shouldEqual res0
51
50
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. */
53
52
}
54
53
55
54
/** 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 {
13
13
check(Test .testSuccess(Asserts .scalaTestAsserts _, true :: HNil ))
14
14
}
15
15
16
- // FIXME: depends on #259
17
- // check(testSuccess(Asserts.booleansAsserts _, HNil))
16
+ def `boolean asserts` = {
17
+ check(Test .testSuccess(Asserts .booleanAsserts _, 4 :: HNil ))
18
+ }
18
19
19
20
def `values asserts` = {
20
21
check(Test .testSuccess(Asserts .valuesAsserts _, 2 :: HNil ))
You can’t perform that action at this time.
0 commit comments