1 2 3 4 5 6 7 8 9 10 11
use {crate::StableMap, alloc::vec::Vec}; #[test] fn test() { let mut map = StableMap::new(); map.insert(1, 11); map.insert(2, 22); let mut linear = map.into_iter().collect::<Vec<_>>(); linear.sort(); assert_eq!(linear, [(1, 11), (2, 22)]); }