Scalactic is brought to you by:

object Tolerance extends Tolerance

Companion object to trait Tolerance that facilitates the importing of Tolerance members as an alternative to mixing it in. One use case is to import Tolerance members so you can use them in the Scala interpreter:

$ scala -classpath scalactic.jar
Welcome to Scala version 2.10.0
Type in expressions to have them evaluated.
Type :help for more information.

scala> import org.scalactic._
import org.scalactic._

scala> import Tolerance._
import Tolerance._

scala> 1.0 +- 0.1
res0: org.scalactic.TripleEqualsSupport.Spread[Double] = Spread(1.0,0.1)

Source
Tolerance.scala
Linear Supertypes
Tolerance, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Tolerance
  2. Tolerance
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final class PlusOrMinusWrapper[T] extends AnyRef

    Wrapper class with a +- method that, given a Numeric argument, returns a Spread.

    Wrapper class with a +- method that, given a Numeric argument, returns a Spread.

    Definition Classes
    Tolerance

Value Members

  1. implicit def convertNumericToPlusOrMinusWrapper[T](pivot: T)(implicit arg0: Numeric[T]): PlusOrMinusWrapper[T]

    Implicitly converts an object of a Numeric type to a PlusOrMinusWrapper, to enable a +- method to be invoked on that object.

    Implicitly converts an object of a Numeric type to a PlusOrMinusWrapper, to enable a +- method to be invoked on that object.

    Definition Classes
    Tolerance