description

Returns a description of the difference between the strings.

  1. string description(Throwable throwable)
  2. string description(string expected, string actual)
    @safe pure
    string
    description
    (
    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