use crate::prelude::*; use indexmap2::{indexmap, indexset, IndexMap, IndexSet}; use std::collections::{BTreeMap, BTreeSet}; #[test] fn indexmap() { test!(IndexMap) .assert_identical::>() .assert_allows_ser_roundtrip([indexmap!(), indexmap!("key".to_owned() => true)]) .assert_matches_de_roundtrip(arbitrary_values()); } #[test] fn indexset() { test!(IndexSet) .assert_identical::>() .assert_allows_ser_roundtrip([indexset!(), indexset!("test".to_owned())]) .assert_matches_de_roundtrip(arbitrary_values()); }