about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorSquirrel <gilescope@gmail.com>2017-06-08 18:38:49 +0100
committerGitHub <noreply@github.com>2017-06-08 18:38:49 +0100
commitde8bbd2b164f1839186ce8a5117e86902701bdfe (patch)
treec9cee3715be9478e7d3ac3bc94187bcc3b0ed845 /src/test/debuginfo/enum-thinlto.rs
parentae3d3878ef831247ebb8babcd5efa345fdbb17eb (diff)
downloadrust-de8bbd2b164f1839186ce8a5117e86902701bdfe.tar.gz
rust-de8bbd2b164f1839186ce8a5117e86902701bdfe.zip
Assert failure message easier to read
By having the left and right strings above and below on the same line it helps spot the difference between the two. E.g.

thread 'tests::test_safe_filename' panicked at 'assertion failed: `(left == right)`
left:  `"-aandb--S123.html"`
right: `"-aandb-S123.html"`',

When the strings are both on the same line it take a lot longer to spot the difference. It is a small change but the small time savings add up with repetition. This helps Rust be an excellent language to write tests in.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions