shouldEqualPretty

Split with sep and verify in lockstep that the two values are the same.

  1. void shouldEqualPretty(lazy V value, lazy E expected, string file = __FILE__, size_t line = __LINE__)
  2. void shouldEqualPretty(lazy V value, lazy E expected, lazy Separator sep, string file = __FILE__, size_t line = __LINE__)
    void
    shouldEqualPretty
    @safe
    (
    V
    E
    Separator
    )
    (
    lazy V value
    ,
    lazy E expected
    ,
    lazy Separator sep
    ,
    string file = __FILE__
    ,
    size_t line = __LINE__
    )
    if (
    !isAllSomeString!(V, E)
    )
  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.

sep
Type: Separator

separator to split value and expected on.

file
Type: string

file check is in.

line
Type: size_t

line check is on.

Throws

UnitTestException on failure.

Meta