Skip to main content

Module assert_bag_ne

Module assert_bag_ne 

Source
Expand description

Assert a bag is not equal to another.

Pseudocode:
(a_collection ⇒ a_bag) ≠ (b_collection ⇒ b_bag)

§Example

use assertables::*;

let a = [1, 1];
let b = [1, 1, 1];
assert_bag_ne!(a, b);

This implementation uses ::std::collections::BTreeMap to count items and sort them.

§Module macros