#include #include using cruft::set::dset; int main () { cruft::TAP::logger tap; { dset const a { 1, 2, 3, 5, }; dset const b { 2, 4, 5, }; dset const c { 2, 5, }; tap.expect_eq (a & b, c, "set intersection"); } { dset val { 3, 4, 5 }; val.add (2, 4); dset const expected { 3, 4, 4, 4, 5 }; tap.expect_eq (val, expected, "set add_n"); } return tap.status (); }