Macro similar_asserts::assert_eq [−][src]
Asserts that two expressions are equal to each other (using PartialEq).
On panic, this macro will print the values of the expressions with their debug representations with a colorized diff of the changes in the debug output.
Like assert!, this macro has a second form, where a custom panic
message can be provided.
use similar_asserts::assert_eq; assert_eq!((1..3).collect::<Vec<_>>(), vec![1, 2]);