Helpers

trait Helpers
Companion
object
class Object
trait Matchable
class Any
object Helpers

Type members

Classlikes

class StringOps(str: String)

Value members

Concrete methods

def exists[L[_], A](la: L[A])(f: A => Expectations)(foldable: Foldable[L], pos: SourceLocation): Expectations

Checks that an assertion is true for at least one element in a foldable. Fails if the foldable is empty.

Checks that an assertion is true for at least one element in a foldable. Fails if the foldable is empty.

Expect macros

Expect macros

def fail[A](hint: String)(pos: SourceLocation): A => Expectations
def failure(hint: String)(pos: SourceLocation): Expectations
def forEach[L[_], A](la: L[A])(f: A => Expectations)(L: Foldable[L]): Expectations

Checks that an assertion is true for all elements in a foldable. Succeeds if the foldable is empty.

Checks that an assertion is true for all elements in a foldable. Succeeds if the foldable is empty.

def inEach[L[_], A](la: L[A])(f: A => Expectations)(L: Foldable[L]): Expectations

Alias to forall

Alias to forall

def succeed[A]: A => Expectations
def verify(condition: Boolean, hint: String)(pos: SourceLocation): Expectations
def verify(condition: Boolean)(pos: SourceLocation): Expectations

Concrete fields