exceeds_expectations.utils

Undocumented in source.

Members

Functions

formatApproxDifferences
string formatApproxDifferences(TExpected expected, TReceived received, F maxRelDiff, F maxAbsDiff)
Undocumented in source. Be warned that the author may not have intended to support it.
formatCode
string formatCode(string source, size_t focusLine, size_t radius)
Undocumented in source. Be warned that the author may not have intended to support it.
formatDifferences
string formatDifferences(string expected, string received, bool not)

Returns a string showing the expected and received values. Ends with a line separator.

formatTypeDifferences
string formatTypeDifferences(TypeInfo expected, TypeInfo received, bool not)
Undocumented in source. Be warned that the author may not have intended to support it.
humanReadableNumbers
string humanReadableNumbers(N[] numbers)

Given an array of orderable elements,

Templates

CommonDefaultFor
template CommonDefaultFor(T, U)

This is defined in std.math but it's private.

Variables

canCompareForEquality
enum bool canCompareForEquality(L, R);
Undocumented in source.

Meta