Object/Trait

munit

Assertions

Related Docs: trait Assertions | package munit

Permalink

object Assertions extends Assertions

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Assertions
  2. Assertions
  3. CompileErrorMacro
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def assert(cond: ⇒ Boolean, clue: ⇒ Any = "assertion failed")(implicit loc: Location): Unit

    Permalink
    Definition Classes
    Assertions
  6. def assertEquals[A, B](obtained: A, expected: B, clue: ⇒ Any = "values are not the same")(implicit loc: Location, compare: Compare[A, B]): Unit

    Permalink

    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
  7. def assertEqualsDouble(obtained: Double, expected: Double, delta: Double, clue: ⇒ Any = "values are not the same")(implicit loc: Location): Unit

    Permalink

    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
  8. def assertEqualsFloat(obtained: Float, expected: Float, delta: Float, clue: ⇒ Any = "values are not the same")(implicit loc: Location): Unit

    Permalink

    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
  9. def assertNoDiff(obtained: String, expected: String, clue: ⇒ Any = "diff assertion failed")(implicit loc: Location): Unit

    Permalink
    Definition Classes
    Assertions
  10. def assertNotEquals[A, B](obtained: A, expected: B, clue: ⇒ Any = "values are the same")(implicit loc: Location, compare: Compare[A, B]): Unit

    Permalink

    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
  11. def assume(cond: Boolean, clue: ⇒ Any = "assumption failed")(implicit loc: Location): Unit

    Permalink
    Definition Classes
    Assertions
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def clue[T](c: Clue[T]): T

    Permalink
    Definition Classes
    Assertions
  14. def clues(clue: Clue[_]*): Clues

    Permalink
    Definition Classes
    Assertions
  15. macro def compileErrors(code: String): String

    Permalink
    Definition Classes
    CompileErrorMacro
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def fail(message: String, clues: Clues = new Clues(Nil))(implicit loc: Location): Nothing

    Permalink

    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
  19. def fail(message: String, cause: Throwable)(implicit loc: Location): Nothing

    Permalink

    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
  20. def failComparison(message: String, obtained: Any, expected: Any, clues: Clues = new Clues(Nil))(implicit loc: Location): Nothing

    Permalink

    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
  21. def failSuite(message: String, clues: Clues = new Clues(Nil))(implicit loc: Location): Nothing

    Permalink

    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
  22. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. def intercept[T <: Throwable](body: ⇒ Any)(implicit T: ClassTag[T], loc: Location): T

    Permalink

    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
  26. def interceptMessage[T <: Throwable](expectedExceptionMessage: String)(body: ⇒ Any)(implicit T: ClassTag[T], loc: Location): T

    Permalink

    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
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def munitAnsiColors: Boolean

    Permalink
    Definition Classes
    Assertions
  29. def munitCaptureClues[T](thunk: ⇒ T): (T, Clues)

    Permalink
    Definition Classes
    Assertions
  30. val munitLines: Lines

    Permalink
    Definition Classes
    Assertions
  31. def munitPrint(clue: ⇒ Any): String

    Permalink
    Definition Classes
    Assertions
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. def printer: Printer

    Permalink
    Definition Classes
    Assertions
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Assertions

Inherited from CompileErrorMacro

Inherited from AnyRef

Inherited from Any

Ungrouped