cloud_terrastodon_config 0.35.1

Configuration helpers for the Cloud Terrastodon project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use ordermap::OrderSet;

/// Indexmap does not check ordering for comparison, so we use ordermap instead.
#[test]
pub fn it_works() -> eyre::Result<()> {
    let mut a = OrderSet::new();
    a.insert("a".to_string());
    a.insert("b".to_string());
    let mut b = a.clone();
    b.swap_indices(0, 1);
    assert_ne!(a, b);
    Ok(())
}