1
use crate::Config;
2

            
3
#[test]
4
2
fn test_config_toggle() {
5
1
    let mut conf = Config::default();
6
1
    assert!(!conf.display_stats);
7
1
    conf.display_stats = Config::toggle(conf.display_stats);
8
1
    assert!(conf.display_stats);
9
2
}