Creates an Arbitrary instance
Creates an Arbitrary instance
Arbitrary AnyVal
Arbitrary AnyVal
Arbitrary BigDecimal
Arbitrary BigDecimal
Arbitrary BigInt
Arbitrary BigInt
Arbitrary instance of scala.collection.BitSet
Arbitrary instance of scala.collection.BitSet
Arbitrary instance of Boolean
Arbitrary instance of Boolean
Arbitrary instance of Byte
Arbitrary instance of Byte
Arbirtrary instance of Calendar
Arbirtrary instance of Calendar
Arbitrary instance of Char
Arbitrary instance of Char
Arbitrary instance of any org.scalacheck.util.Buildable container (such as lists, arrays, streams, etc).
Arbitrary instance of any org.scalacheck.util.Buildable container (such as lists, arrays, streams, etc). The maximum size of the container depends on the size generation parameter.
Arbitrary instance of any org.scalacheck.util.Buildable container (such as maps).
Arbitrary instance of any org.scalacheck.util.Buildable container (such as maps). The maximum size of the container depends on the size generation parameter.
Arbitrary instance of Date
Arbitrary instance of Date
Arbitrary instance of Double
Arbitrary instance of Double
Arbitrary instance of the Either type
Arbitrary instance of the Either type
Arbitrary instance of Error
Arbitrary instance of Error
Arbitrary instance of Exception
Arbitrary instance of Exception
Arbitrary instance of Float
Arbitrary instance of Float
Arbitrary instance of Function1
Arbitrary instance of Function1
Arbitrary instance of Function10
Arbitrary instance of Function10
Arbitrary instance of Function11
Arbitrary instance of Function11
Arbitrary instance of Function12
Arbitrary instance of Function12
Arbitrary instance of Function13
Arbitrary instance of Function13
Arbitrary instance of Function14
Arbitrary instance of Function14
Arbitrary instance of Function15
Arbitrary instance of Function15
Arbitrary instance of Function16
Arbitrary instance of Function16
Arbitrary instance of Function17
Arbitrary instance of Function17
Arbitrary instance of Function18
Arbitrary instance of Function18
Arbitrary instance of Function19
Arbitrary instance of Function19
Arbitrary instance of Function2
Arbitrary instance of Function2
Arbitrary instance of Function20
Arbitrary instance of Function20
Arbitrary instance of Function21
Arbitrary instance of Function21
Arbitrary instance of Function22
Arbitrary instance of Function22
Arbitrary instance of Function3
Arbitrary instance of Function3
Arbitrary instance of Function4
Arbitrary instance of Function4
Arbitrary instance of Function5
Arbitrary instance of Function5
Arbitrary instance of Function6
Arbitrary instance of Function6
Arbitrary instance of Function7
Arbitrary instance of Function7
Arbitrary instance of Function8
Arbitrary instance of Function8
Arbitrary instance of Function9
Arbitrary instance of Function9
Arbitrary instance of the Future type
Arbitrary instance of the Future type
Arbitrary instance of org.scalacheck.Gen
Arbitrary instance of org.scalacheck.Gen
Arbitrary instance of gen params
Arbitrary instance of gen params
Arbitrary instance of Int
Arbitrary instance of Int
Arbitrary instance of Long
Arbitrary instance of Long
Arbitrary java.lang.Number
Arbitrary java.lang.Number
Arbitrary instance of the Option type
Arbitrary instance of the Option type
Generates an arbitrary property
Generates an arbitrary property
Arbitrary instance of Short
Arbitrary instance of Short
Arbitrary instance of String
Arbitrary instance of String
Arbitrary instance of test parameters
Arbitrary instance of test parameters
Arbitrary instance of Throwable
Arbitrary instance of Throwable
Arbitrary instance of the Try type
Arbitrary instance of the Try type
Arbitrary instance of 1-Tuple
Arbitrary instance of 1-Tuple
Arbitrary instance of 10-Tuple
Arbitrary instance of 10-Tuple
Arbitrary instance of 11-Tuple
Arbitrary instance of 11-Tuple
Arbitrary instance of 12-Tuple
Arbitrary instance of 12-Tuple
Arbitrary instance of 13-Tuple
Arbitrary instance of 13-Tuple
Arbitrary instance of 14-Tuple
Arbitrary instance of 14-Tuple
Arbitrary instance of 15-Tuple
Arbitrary instance of 15-Tuple
Arbitrary instance of 16-Tuple
Arbitrary instance of 16-Tuple
Arbitrary instance of 17-Tuple
Arbitrary instance of 17-Tuple
Arbitrary instance of 18-Tuple
Arbitrary instance of 18-Tuple
Arbitrary instance of 19-Tuple
Arbitrary instance of 19-Tuple
Arbitrary instance of 2-Tuple
Arbitrary instance of 2-Tuple
Arbitrary instance of 20-Tuple
Arbitrary instance of 20-Tuple
Arbitrary instance of 21-Tuple
Arbitrary instance of 21-Tuple
Arbitrary instance of 22-Tuple
Arbitrary instance of 22-Tuple
Arbitrary instance of 3-Tuple
Arbitrary instance of 3-Tuple
Arbitrary instance of 4-Tuple
Arbitrary instance of 4-Tuple
Arbitrary instance of 5-Tuple
Arbitrary instance of 5-Tuple
Arbitrary instance of 6-Tuple
Arbitrary instance of 6-Tuple
Arbitrary instance of 7-Tuple
Arbitrary instance of 7-Tuple
Arbitrary instance of 8-Tuple
Arbitrary instance of 8-Tuple
Arbitrary instance of 9-Tuple
Arbitrary instance of 9-Tuple
Absolutely, totally, 100% arbitrarily chosen Unit.
Absolutely, totally, 100% arbitrarily chosen Unit.
Returns an arbitrary generator for the type T.
Returns an arbitrary generator for the type T.
Defines implicit org.scalacheck.Arbitrary instances for common types.
ScalaCheck uses implicit org.scalacheck.Arbitrary instances when creating properties out of functions with the
Prop.property
method, and when theArbitrary.arbitrary
method is used. For example, the following code requires that there exists an implicitArbitrary[MyClass]
instance:The required implicit definition could look like this:
The factory method
Arbitrary(...)
takes a generator of typeGen[T]
and returns an instance ofArbitrary[T]
.The
Arbitrary
module defines implicit org.scalacheck.Arbitrary instances for common types, for convenient use in your properties and generators.