shouldEqualPretty

Verify in lockstep that the two values are the same.

Useful when the values can be treated as ranges. The lockstep comparison then results in a more comprehensible failure message.

trusted: it only affects unittesting.

  1. void shouldEqualPretty(lazy V value, lazy E expected, string file = __FILE__, size_t line = __LINE__)
    void
    shouldEqualPretty
    @trusted
    (
    V
    E
    )
    (
    lazy V value
    ,
    lazy E expected
    ,
    string file = __FILE__
    ,
    size_t line = __LINE__
    )
    if (
    !isAllSomeString!(V, E)
    )
  2. void shouldEqualPretty(lazy V value, lazy E expected, lazy Separator sep, string file = __FILE__, size_t line = __LINE__)
  3. void shouldEqualPretty(lazy V value, lazy E expected, lazy string sep = newline, string file = __FILE__, size_t line = __LINE__)

Parameters

value
Type: V

actual value.

expected
Type: E

expected value.

file
Type: string

file check is in.

line
Type: size_t

line check is on.

Throws

UnitTestException on failure

Meta