// Standard Uses // Local Uses // External Uses use comline_rs::idl; use comline_rs::ir::unit::Unit; #[test] fn from_raw_to_unit() { let raw = std::fs::read_to_string("tests/idl/simple.cls").unwrap(); let unit = idl::pest::parse_into_unit(raw.as_str()).unwrap(); assert_eq!( unit, Unit::Items(vec![ Unit::Namespace("".to_string()), ] ) ) }