提供带有彩色差异输出的 assert_eq! 类似宏
similar-asserts is a crate that enhances the default assertion experience
by using similar for diffing. It supports
comparing either Debug or Serialize representations of values. On failed
assertions it renders out a colorized diff to the terminal.
fn main() {
let reference = vec![1, 2, 3, 4];
similar_asserts::assert_eq!(reference, (0..4).collect::>());
}暂无开放 Issues,或尚未同步最近议题。