18 lines
501 B
Rust
18 lines
501 B
Rust
|
use pretty_assertions::assert_eq;
|
||
|
use trixy::macros::config::{file_tree::FileTree, trixy::TrixyConfig};
|
||
|
|
||
|
#[test]
|
||
|
pub fn empty() {
|
||
|
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/empty/input.tri")
|
||
|
.dist_dir_path("dist")
|
||
|
.add_c_headers(false);
|
||
|
|
||
|
let actual = config.generate();
|
||
|
assert_eq!(expected, actual);
|
||
|
}
|