View Shrinking.scala
import org.scalatest._ | |
import prop._ | |
import org.scalacheck.Arbitrary._ | |
import org.scalacheck.Gen | |
/** | |
* Solutions to the ScalaCheck problem that shrinking failing values may generate | |
* invalid values, because the constraints of the generator are not respected. | |
* | |
* See also http://stackoverflow.com/questions/20037900/scalacheck-wont-properly-report-the-failing-case |
View DirectedGraphTraversals.scala
package com.liveperson.predictivedialer.examples.misc | |
import scala.annotation.tailrec | |
import scala.util.Try | |
/** | |
* Created with IntelliJ IDEA. | |
* User: mishaelr | |
* Date: 5/14/14 | |
* Time: 5:18 PM |