Pretty print left/right in assertions (ExUnit)?

Hello,

does anyone know if I can configure/provide options in ExUnit to pretty print strings with newlines in left/right diffs?

Example:

left: "one\ntwo\nthree"
right: "one\ntwo\nfour"

should be printed like:

left:
  one
  two
  three

right:
  one
  two
  four

What I intend to do is testing schema snapshots of Graphql SDL documents in Absinthe, having those documents pretty printed makes test output far more readable.

Thanks!

You can use second argument to assert/2 to provide your own message.