#[cfg(test)] #[test] fn test_stack() { use wild_doc::*; let dir = "./wd-test/"; if std::path::Path::new(dir).exists() { std::fs::remove_dir_all(dir).unwrap(); } std::fs::create_dir_all(dir).unwrap(); let mut wd = WildDoc::new(dir, IncludeLocal::new("./include/"), None, 1); let xml = br#" for: script_for: "#; let r = wd.run(xml, b"").unwrap(); println!("{}", std::str::from_utf8(r.body()).unwrap()); }