Http module

expect_equal

procedureextensionexperimentalSource

actual == expected, showing both when they differ.

Example
assert(expect_equal(2 + 2, 4));
assert(expect_equal("abc", "abc", "the name"));

Doesn't run in the browser (skipped on wasm).

expect_equal :: (
    actual: $T,
    expected: T,
    what := "",
    loc := #caller_location
) -> bool

Parameters

actual: $T
expected: T
what := ""
loc := #caller_location

Returns

bool

See also