description

Returns a description of the difference between the strings.

string
description
@safe pure
(
string expected
,
string actual
)

Examples

assert(description("ab", "Ab") == "expected: <<a>b> but was: <<A>b>");
assert(description("a\nb", "A\nb") == "expected:\n<a>\nb\nbut was:\n<A>\nb");

Meta