mirage / alcotest

A lightweight and colourful test framework
ISC License
456 stars 80 forks source link

Print strings and chars with OCaml syntax on assertion failures #318

Closed craigfe closed 3 years ago

craigfe commented 3 years ago

In particular, wrap them with single- or double-quotes and add string escapes. This makes the various printers more consistent & ensures that control characters such as \r in the test data don't mess with the test output.

samoht commented 3 years ago

LGTM