aumm_core 0.1.0

Abstract Universal Macro Model core: deterministic gesture recognition and macro execution.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use aumm_core::KeyId;
use std::collections::HashSet;

#[test]
fn keyid_from_into_string() {
    let k: KeyId = "F1".into();
    assert_eq!(k.0, "F1");
}

#[test]
fn keyid_hash_equality() {
    let mut set = HashSet::new();
    set.insert(KeyId("A".into()));
    set.insert(KeyId("A".into())); // duplicate
    set.insert(KeyId("B".into()));
    assert_eq!(set.len(), 2);
}