#![allow(dead_code)] extern crate mml; struct A { b: B, } struct B { } #[test] fn test_composition() { assert_eq!( String::from_utf8(mml::rs2dot("tests/composition.rs").unwrap()).unwrap(), r#"digraph ml { ndA[label="{<<<Structure>>>\nA|- b: B}"][shape="record"]; ndB[label="{<<<Structure>>>\nB}"][shape="record"]; ndB -> ndA[label=""][arrowhead="diamond"]; } "#); }