codama-nodes 0.10.0

Node specifications and helpers for the Codama standard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[cfg(test)]
mod tests {
    use crate::{ContextualValueNode, HasKind, ProgramIdValueNode, RegisteredContextualValueNode};

    #[test]
    fn kind_from_standalone() {
        let node: ContextualValueNode = ProgramIdValueNode::new().into();
        assert_eq!(node.kind(), "programIdValueNode");
    }

    #[test]
    fn kind_from_registered() {
        let node: RegisteredContextualValueNode = ProgramIdValueNode::new().into();
        assert_eq!(node.kind(), "programIdValueNode");
    }
}