trait Assertions extends CompileErrorMacro

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def assert(cond: => Boolean, clue: => Any = "assertion failed")(implicit loc: Location): Unit
  6. 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.

  7. 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.

  8. 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.

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

  11. def assume(cond: Boolean, clue: => Any = "assumption failed")(implicit loc: Location): Unit
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. def clue[T](c: Clue[T]): T
  14. def clues(clue: Clue[_]*): Clues
  15. macro def compileErrors(code: String): String
    Definition Classes
    CompileErrorMacro
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def fail(message: String, clues: Clues = new Clues(Nil))(implicit loc: Location): Nothing

    Unconditionally fails this test with the given message and optional clues.

  19. def fail(message: String, cause: Throwable)(implicit loc: Location): Nothing

    Unconditionally fails this test with the given message and exception marked as the cause.

  20. 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.

  21. 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.

  22. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. 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.

  26. 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.

  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. def munitAnsiColors: Boolean
  29. def munitCaptureClues[T](thunk: => T): (T, Clues)
  30. val munitLines: Lines
  31. def munitPrint(clue: => Any): String
  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from CompileErrorMacro

Inherited from AnyRef

Inherited from Any

Ungrouped