@hatch:assert v0.2.2
Fluent assertion primitives for Wren test specs.
$
hatch add @hatch:assert
Fluent assertion primitives for Wren test specs.
Assertion.new(actual)
Assertion.not → Assertion
Assertion.toBe(expected: Object)
Assertion.toEqual(expected: Object)
Assertion.toBeNull()
Assertion.toBeTruthy()
Assertion.toBeFalsy()
Assertion.toBeGreaterThan(other: Num)
Assertion.toBeGreaterThanOrEqual(other: Num)
Assertion.toBeLessThan(other: Num)
Assertion.toBeLessThanOrEqual(other: Num)
Assertion.toContain(item: Object)
Assertion.toBeInstanceOf(klass: Class)
Assertion.toAbort()
Assertion.toAbortWith(message: String)
Assertion.check_(ok, matcher, expected)
Assertion.deepEquals_(a, b)
Assertion.listEquals_(a, b)
Assertion.mapEquals_(a, b)
Assertion.format_(v)
Assertion.typeName_(v)
Expect.static that(actual: Object) → Assertion