shouldEqualPretty

Verify that two strings are the same.

Performs tests per line to better isolate when a difference is found.

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

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