You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the exercise of Foldable traverse, it accepts a wrong answer as proper:
importcats.implicits._defparseInt(s: String):Option[Int] =Either.catchOnly[NumberFormatException](s.toInt).toOption
Foldable[List].traverse_(List("1", "2", "3"))(parseInt) should be(Some(42))
Since traverse_ returns G[Unit], correct answer should be Some(()). But it is accepting Some of anything. Maybe it is even a bug on scalatest since on a workspace:
On the exercise of Foldable
traverse
, it accepts a wrong answer as proper:Since traverse_ returns
G[Unit]
, correct answer should beSome(())
. But it is accepting Some of anything. Maybe it is even a bug onscalatest
since on a workspace:Outputs:
The text was updated successfully, but these errors were encountered: