codama-nodes 0.9.3

Node specifications and helpers for the Codama standard
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[cfg(test)]
mod tests {
    use crate::{ConstantPdaSeedNode, HasKind, NumberTypeNode, NumberValueNode, PdaSeedNode, U8};

    #[test]
    fn kind() {
        let node: PdaSeedNode =
            ConstantPdaSeedNode::new(NumberTypeNode::le(U8), NumberValueNode::new(42u8)).into();
        assert_eq!(node.kind(), "constantPdaSeedNode");
    }
}