rust-pretty-assertions icon indicating copy to clipboard operation
rust-pretty-assertions copied to clipboard

Use -/+ instead of </>

Open cormacrelf opened this issue 6 years ago • 0 comments

It's not a purely cosmetic idea. + and - in the first column of text makes it very easy to get diff syntax highlighting when you copy and paste test output into GitHub comments. I find myself replacing the angle braces manually to get this effect.

Diff < left / right > :
 neutral
<[1, 2, 3, 4]
>[1–4]
Diff - left / right + :
 neutral
-[1, 2, 3, 4]
+[1–4]

cormacrelf avatar Sep 09 '19 08:09 cormacrelf