org.scalatest.time.SpanSugar
See theSpanSugar companion trait
Companion object that facilitates the importing of SpanSugar
members as an alternative to mixing it in. One use case is to import SpanSugar
members so you can use them in the Scala interpreter:
$scala -classpath scalatest.jar
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_29).
Type in expressions to have them evaluated.
Type :help for more information.
scala> import org.scalatest._
import org.scalatest._
scala> import concurrent.Eventually._
import org.scalatest.concurrent.Eventually._
scala> import time.SpanSugar._
import org.scalatest.time.SpanSugar._
scala> eventually(timeout(100 millis)) { 1 + 1 should equal (3) }
Attributes
Companion
trait
Graph
Reset zoom Hide graph Show graph
Supertypes
class Object
trait Matchable
class Any
Self type
Members list
Class containing methods that return a Span
time value calculated from the Double
value passed to the FloatingGrainOfTime
constructor.
Class containing methods that return a Span
time value calculated from the Double
value passed to the FloatingGrainOfTime
constructor.
Value parameters
value
the value to be converted
Attributes
Inherited from:
SpanSugar
Supertypes
class Object
trait Matchable
class Any
Class containing methods that return a Span
time value calculated from the Long
value passed to the GrainOfTime
constructor.
Class containing methods that return a Span
time value calculated from the Long
value passed to the GrainOfTime
constructor.
Value parameters
value
the value to be converted
Attributes
Inherited from:
SpanSugar
Supertypes
class Object
trait Matchable
class Any
Implicit conversion that adds time units methods to Double
s.
Implicit conversion that adds time units methods to Double
s.
Value parameters
d:
the Double
to which to add time units methods
Attributes
Returns
a FloatingGrainOfTime
wrapping the passed Double
Inherited from:
SpanSugar
Implicit conversion that adds time units methods to Float
s.
Implicit conversion that adds time units methods to Float
s.
Value parameters
f:
the Float
to which to add time units methods
Attributes
Returns
a FloatingGrainOfTime
wrapping the passed Float
Inherited from:
SpanSugar
Implicit conversion that adds time units methods to Int
s.
Implicit conversion that adds time units methods to Int
s.
Value parameters
i:
the Int
to which to add time units methods
Attributes
Returns
a GrainOfTime
wrapping the passed Int
Inherited from:
SpanSugar
Implicit conversion that adds time units methods to Long
s.
Implicit conversion that adds time units methods to Long
s.
Value parameters
i:
the Long
to which to add time units methods
Attributes
Returns
a GrainOfTime
wrapping the passed Long
Inherited from:
SpanSugar