Macro assure::assure_set_ne [−][src]
Assure two sets are not equal.
This implementation uses [HashSet
] ro count items.
On error, this macro will print the values of the expressions with their debug representations.
Like assert!
, this macro has a second form, where a custom
panic message can be provided.
Example with arrays
let a = [1, 2]; let b = [3, 4]; assure_set_ne!(a, b);
Example with linked lists
use std::collections::LinkedList; let mut a = LinkedList::new(); a.push_back(1); a.push_back(2); let mut b = LinkedList::new(); b.push_back(3); b.push_back(4); assure_set_ne!(a, b);