pink-runtime 0.1.1

A very minimal replecement based DSL, intended for math.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;

#[test]
fn structures_with_overlap() {
    let domain = BTreeSet::from(["a".to_string(), "b".to_string()]);
    let reserved = BTreeSet::from(["a".to_string(), "c".to_string()]);

    assert_eq!(
        Structure::create(domain, reserved, Vec::new()),
        Err(StructureError::DomainAndReservedOverlap {
            culprit: "a".to_string()
        })
    );
}