Convenience base trait for string Uniformitys.
Provides mechanisms that enable errors to be accumulated in “accumulating Ors,” Ors whose
Bad type is an Every.
A trait that represent a rich-featured boolean value, which includes the following members:
Abstract class used to enforce type constraints for equality checks.
Convenience class for extractors that match and return Throwables based on a type and Boolean condition.
Defines a custom way to determine equality for a type when compared with another value of type Any.
Defines a custom way to determine equality for a type when compared with another value of the same type.
Type alias for String.
Type alias for String.
Provides ScalaTest's “explicitly DSL,” which facilitates the
explicit specification of an Equality[T] or a Uniformity[T] where
Equality[T] is taken implicitly.
Trait providing an implicit class that adds a validating method to
Future, which takes one or more validation functions and returns either the
same Future if either the Future had already failed or its value
passes all the functions, or ValidationFailedException containing an error message
describing the first validation that failed.
Provides an implicit conversion that will be applied only if a higher-priority implicit conversion declared a subtrait is not applicable.
Provides an implicit method that loosens the equality constraint defined by TypeCheckedTripleEquals or ConversionCheckedTripleEquals
for Scala Maps to one that more closely matches Scala's approach to Map equality.
Provides an implicit conversion that allows norm to be invoked on any value of type
T for which an implicit Normalization[T] exists.
Defines a custom way to normalize instances of a type.
An Equality[A] implementation that determines the equality of two objects by normalizing
one or both objects, then comparing the results using an “after normalization” equality referenced from
the afterNormalizationEquality member.
An Equivalence[A] implementation that determines the equality of two objects by normalizing
one or both objects, then comparing the results using an “after normalization” Equivalence referenced from
the afterNormalizationEquivalence member.
Trait providing an implicit class that adds a toOr method to
Option, which converts Some to Good,
None to Bad.
A function that given any object will produce a “pretty” string representation of that object, where “pretty” is in the eye of the implementer.
Provides an implicit conversion that enables pretty to be invoked on any
object, to transform that object into a String representation.
Trait that contains require, and requireState, and requireNonNull methods for checking pre-conditions
that give descriptive error messages extracted via a macro.
Provides an implicit method that loosens the equality constraint defined by TypeCheckedTripleEquals or ConversionCheckedTripleEquals
for Scala Seqs to one that more closely matches Scala's approach to Seq equality.
Provides an implicit method that loosens the equality constraint defined by TypeCheckedTripleEquals or ConversionCheckedTripleEquals
for Scala Sets to one that more closely matches Scala's approach to Set equality.
Size limit value class.
Case class that stores the name and value of a variable or expression.
An IndexedSeq[Snapshot] providing toString and lines methods that
can be useful for debug and log messages about program state.
Trait that provides a snap method that takes one or more arguments and results in a
SnapshotSeq, whose toString lists the names
and values of each argument.
Provides methods that produce Uniformity[String] instances for various
ways to normalize strings for equality comparisons.
Trait providing an implicit conversion that adds a times method to Ints that
will repeat a given side-effecting operation multiple times.
Trait containing an implicit conversion that adds a +- method to Numeric types, which enables
spreads to be expressed in terms of a pivot and tolerance.
Provides Equality and Equivalence instances for Numeric types that
compare for equality with a given tolerance.
Provides three implicit methods that loosen the equality constraint defined by TypeCheckedTripleEquals
for Scala Traversables to one that more closely matches Scala's approach to Traversable equality.
Provides === and !== operators that return Boolean, delegate the equality determination
to an Equality type class, and require no relationship between the types of the two values compared.
Trait that defines abstract methods used to enforce compile-time type constraints for equality comparisons, and defines === and !== operators
used by matchers.
Trait providing an implicit class that adds a toOr method to
Try, which converts Success to Good,
and Failure to Bad, as well as a validating method,
which takes one or more validation functions and returns either the
same Try if either the Try had already failed or its value
passes all the functions, or ValidationFailedException containing an error message
describing the first validation that failed.
Provides === and !== operators that return Boolean, delegate the equality determination
to an Equality type class, and require the types of the two values compared to be in a subtype/supertype
relationship.
Defines a custom way to normalize instances of a type that can also handle normalization of that type when passed as Any.
The name org.scalactic.Chain has been deprecated and will be removed in a future version of Scalactic. Please use
its new name, org.scalatest.anyvals.NonEmptyList, instead.
The name org.scalactic.Chain has been deprecated and will be removed in a future version of Scalactic. Please use
its new name, org.scalatest.anyvals.NonEmptyList, instead.
This type has been renamed for consistency with other 'NonEmpty' anyvals.
(Since version 3.1.0) Chain has been deprecated and will be removed in a future version of Scalactic. Please use org.scalactic.anyvals.NonEmptyList instead.
Companion object to trait Accumulation that allows Accumulation's members to be imported
rather than mixed in, and also contains nested traits used by implicit conversions declared in
trait Accumulations.
Bool companion object that provides factory methods to create different sub types of Bool
Companion object for Catcher that provides a factory method for creating Throwable extractors.
Companion object for trait Equality that provides factory methods for producing Equality
instances.
Companion object for trait Equivalence that provides a factory method for producing
default Equivalence instances.
Companion object for Explicitly, which enables the Scalactic explicitly DSL to
be imported rather than mixed in, like this:
Companion object for FutureSugar enabling its members to be
imported as an alternative to mixing them in.
Companion object that facilitates the importing of MapEqualityConstraints members as
an alternative to mixing it in.
Companion object for NormMethods enabling its members to be imported as an alternative to mixing them in.
Companion object for OptionSugar enabling its members to be
imported as an alternative to mixing them in.
Companion object for Prettifier that provides a default Prettifier implementation.
Companion object for trait PrettyMethods enabling its members to be imported as an
alternative to mixing them in.
Companion object that facilitates the importing of Requirements members as
an alternative to mixing it in.
The version number of Scalactic.
The version number of Scalactic.
the Scalactic version number.
Companion object that facilitates the importing of SeqEqualityConstraints members as
an alternative to mixing it in.
Companion object that facilitates the importing of SetEqualityConstraints members as
an alternative to mixing it in.
Companion object that facilitates the importing of Snapshots members as
an alternative to mixing it in.
Companion object to trait StringNormalizations that provides an
alternative to mixing it in.
Companion object that facilitates the importing of TimesOnInt members as an alternative to mixing it in.
Companion object to trait Tolerance that facilitates the importing of Tolerance members as
an alternative to mixing it in.
Companion object for TolerantNumerics that enables its members to be imported as an alternative to
mixing them in.
Companion object that facilitates the importing of TraversableEqualityConstraints members as
an alternative to mixing it in.
Companion object to trait TripleEquals that facilitates the importing of TripleEquals members as
an alternative to mixing it in.
Companion object for TrySugar enabling its members to be
imported as an alternative to mixing them in.
Companion object to trait TypeCheckedTripleEquals that facilitates the importing of TypeCheckedTripleEquals members as
an alternative to mixing it in.
Returns the result of evaluating the given block f, wrapped in a Good, or
if an exception is thrown, the Throwable, wrapped in a Bad.
Returns the result of evaluating the given block f, wrapped in a Good, or
if an exception is thrown, the Throwable, wrapped in a Bad.
Here are some examples:
scala> import org.scalactic._
import org.scalactic._
scala> attempt { 2 / 1 }
res0: org.scalactic.Or[Int,Throwable] = Good(2)
scala> attempt { 2 / 0 }
res1: org.scalactic.Or[Int,Throwable] = Bad(java.lang.ArithmeticException: / by zero)
the block to attempt to evaluate
the result of evaluating the block, wrapped in a Good, or the
thrown exception, wrapped in a Bad
The name org.scalactic.Chain has been deprecated and will be removed in a future version of Scalactic. Please use
its new name, org.scalatest.anyvals.NonEmptyList, instead.
The name org.scalactic.Chain has been deprecated and will be removed in a future version of Scalactic. Please use
its new name, org.scalatest.anyvals.NonEmptyList, instead.
This type has been renamed for consistency with other 'NonEmpty' anyvals.
(Since version 3.1.0) Chain has been deprecated and will be removed in a future version of Scalactic. Please use org.scalactic.anyvals.NonEmptyList instead.
The name org.scalactic.End has been deprecated and will be removed in a future version of Scalactic. Please use
its new name, org.scalatest.anyvals.End, instead.
The name org.scalactic.End has been deprecated and will be removed in a future version of Scalactic. Please use
its new name, org.scalatest.anyvals.End, instead.
This type has been renamed for consistency with other 'NonEmpty' anyvals.
(Since version 3.1.0) End has been deprecated and will be removed in a future version of Scalactic. Please use org.scalactic.anyvals.End instead.