sysml-v2-parser 0.20.4

SysML v2 textual notation parser for Rust
Documentation
//! Parser test for `04-Functional Allocation/4a-Functional Allocation.sysml`.

use sysml_v2_parser::parse;

#[test]
#[ignore = "requires SysML v2 release fixtures; run with: cargo test --test validation -- --include-ignored"]
fn test_parse_4a_functional_allocation() {
    super::init_log();
    let path = super::validation_fixture_path("04-Functional Allocation")
        .join("4a-Functional Allocation.sysml");
    let input = std::fs::read_to_string(&path)
        .unwrap_or_else(|e| panic!("read fixture {}: {}", path.display(), e));
    let result = parse(&input).expect("parse should succeed for 4a-Functional Allocation.sysml");
    super::assert_ast_snapshot(
        &result,
        "functional_allocation_4a",
        "parsed AST should match expected for 4a-Functional Allocation.sysml",
    );
}