object Assertions extends Assertions
- Alphabetic
- By Inheritance
- Assertions
- Assertions
- CompileErrorMacro
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assert(cond: => Boolean, clue: => Any = "assertion failed")(implicit loc: Location): Unit
- Definition Classes
- Assertions
- def assertEquals[A, B](obtained: A, expected: B, clue: => Any = "values are not the same")(implicit loc: Location, compare: Compare[A, B]): Unit
Asserts that two elements are equal according to the
Compare[A, B]
type-class.Asserts that two elements are equal according to the
Compare[A, B]
type-class.By default, uses
==
to compare values.- Definition Classes
- Assertions
- def assertEqualsDouble(obtained: Double, expected: Double, delta: Double, clue: => Any = "values are not the same")(implicit loc: Location): Unit
Asserts that two doubles are equal to within a positive delta.
Asserts that two doubles are equal to within a positive delta. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Double.NaN, Double.NaN, *) passes.
- Definition Classes
- Assertions
- def assertEqualsFloat(obtained: Float, expected: Float, delta: Float, clue: => Any = "values are not the same")(implicit loc: Location): Unit
Asserts that two floats are equal to within a positive delta.
Asserts that two floats are equal to within a positive delta. If the expected value is infinity then the delta value is ignored. NaNs are considered equal: assertEquals(Float.NaN, Float.NaN, *) passes.
- Definition Classes
- Assertions
- def assertNoDiff(obtained: String, expected: String, clue: => Any = "diff assertion failed")(implicit loc: Location): Unit
- Definition Classes
- Assertions
- def assertNotEquals[A, B](obtained: A, expected: B, clue: => Any = "values are the same")(implicit loc: Location, compare: Compare[A, B]): Unit
Asserts that two elements are not equal according to the
Compare[A, B]
type-class.Asserts that two elements are not equal according to the
Compare[A, B]
type-class.By default, uses
==
to compare values.- Definition Classes
- Assertions
- def assume(cond: Boolean, clue: => Any = "assumption failed")(implicit loc: Location): Unit
- Definition Classes
- Assertions
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def clue[T](c: Clue[T]): T
- Definition Classes
- Assertions
- def clues(clue: Clue[_]*): Clues
- Definition Classes
- Assertions
- macro def compileErrors(code: String): String
- Definition Classes
- CompileErrorMacro
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fail(message: String, clues: Clues = new Clues(Nil))(implicit loc: Location): Nothing
Unconditionally fails this test with the given message and optional clues.
Unconditionally fails this test with the given message and optional clues.
- Definition Classes
- Assertions
- def fail(message: String, cause: Throwable)(implicit loc: Location): Nothing
Unconditionally fails this test with the given message and exception marked as the cause.
Unconditionally fails this test with the given message and exception marked as the cause.
- Definition Classes
- Assertions
- def failComparison(message: String, obtained: Any, expected: Any, clues: Clues = new Clues(Nil))(implicit loc: Location): Nothing
Unconditionally fails this test due to result of comparing two values.
Unconditionally fails this test due to result of comparing two values.
The only reason to use this method instead of
fail()
is if you want to allow comparing the two different values in the the IntelliJ GUI diff viewer.- Definition Classes
- Assertions
- def failSuite(message: String, clues: Clues = new Clues(Nil))(implicit loc: Location): Nothing
Unconditionally fail this test case and cancel all the subsequent tests in this suite.
Unconditionally fail this test case and cancel all the subsequent tests in this suite.
- Definition Classes
- Assertions
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def intercept[T <: Throwable](body: => Any)(implicit T: ClassTag[T], loc: Location): T
Evalutes the given expression and asserts that an exception of type T is thrown.
Evalutes the given expression and asserts that an exception of type T is thrown.
- Definition Classes
- Assertions
- def interceptMessage[T <: Throwable](expectedExceptionMessage: String)(body: => Any)(implicit T: ClassTag[T], loc: Location): T
Evalutes the given expression and asserts that an exception of type T with the expected message is thrown.
Evalutes the given expression and asserts that an exception of type T with the expected message is thrown.
- Definition Classes
- Assertions
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def munitAnsiColors: Boolean
- Definition Classes
- Assertions
- def munitCaptureClues[T](thunk: => T): (T, Clues)
- Definition Classes
- Assertions
- val munitLines: Lines
- Definition Classes
- Assertions
- def munitPrint(clue: => Any): String
- Definition Classes
- Assertions
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def printer: Printer
- Definition Classes
- Assertions
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()