Closed Chewie closed 3 years ago
I've been playing with similar and it's companion similar-asserts as a replacement of differences.rs, and the result is very clean. Maybe the predicate could make use of this crate?
This crate aims to be the low level mechanism for implementing crates like that, like assert_that or assert_cmd.
To get this functionality, it either needs to come via a macro or the recent https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1460-2020-08-27 attribute
For my crates, I've created https://github.com/assert-rs/assert_cmd/issues/133 and https://github.com/assert-rs/assert_fs/issues/68
Heya,
The regular assert_eq! macro provides the line containing the assert in its output:
This information can be parsed by editors like Vim to fill the quickfix list automatically and jump to the error, which is very helpful.
Unfortunately, the DifferencePredicate doesn't show this information:
Would it be possible to add this information to the output?