use pretty_assertions::assert_eq; use trixy::macros::config::{file_tree::FileTree, trixy::TrixyConfig}; #[test] pub fn types() { let input = include_str!("./expected.md"); let expected: FileTree = input.parse().unwrap(); let config = TrixyConfig::new("callback_function") .out_dir_path("out/dir") .trixy_path("./tests/types/input.tri") .dist_dir_path("dist") .add_c_headers(false); let actual = config.generate(); assert_eq!(expected, actual); }