marick / Midje

Midje provides a migration path from clojure.test to a more flexible, readable, abstract, and gracious style of testing
MIT License
1.68k stars 128 forks source link

Print linebreaks in failure messages #454

Closed philomates closed 5 years ago

philomates commented 5 years ago

resolves https://github.com/marick/Midje/issues/453

When running

(fact "foo
bar"
  (fact "baz"
    1 => 2))

The error message before:

FAIL "foo\nbar - baz" at (t_util.clj:64)
Expected:
2
Actual:
1

and after:

FAIL foo
bar - baz at (t_util.clj:64)
Expected:
2
Actual:
1