Import std.core.assert
std.core.assert
AssertEqual, an Assert that says what it compared.
Assert, DebugAssert, Unreachable, Todo, and Panic are built in, since the compiler leaves a DebugAssert out of release builds, and knows the others end the code there.
std/core/assert.fb
Functions
AssertEqual
function
@PanicsAtCaller Public Function AssertEqual<T>(actual: T, expected: T, message: String = "")
Checks that actual is expected, and panics when it isn't, saying what each is, after the
message when there's one.
Examples
AssertEqual([1, 2, 3].Count, 3)
AssertEqual("a" + "b", "ab", "joined text")Report an issue with this page or with FutureBlitz on GitHub.