moved the test data to own directory

This commit is contained in:
2023-01-24 14:14:53 +01:00
parent f13d24bee0
commit b66b7afaf6
8 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/target /target
dist dist
docs

View File

View File

View File

View File

View File

@@ -12,7 +12,6 @@ fn asciidoctor(postfix: &str, in_path: &str, out_path: &str) -> Result<(), Strin
if success.stderr.len() == 0 { if success.stderr.len() == 0 {
return Ok(()); return Ok(());
} else { } else {
println!("something went wrong");
return Err(AsciiDoctorDocsBuilder::from_utf8(success.stderr)); return Err(AsciiDoctorDocsBuilder::from_utf8(success.stderr));
} }
} else { } else {

View File

@@ -2,7 +2,7 @@ use crate::app::fs_util;
#[test] #[test]
fn test_fetch_asciidoctor_paths_recursive() { fn test_fetch_asciidoctor_paths_recursive() {
let paths = fs_util::fetch_paths_recursive("docs", ".adoc").unwrap(); let paths = fs_util::fetch_paths_recursive("res/test/docs", ".adoc").unwrap();
let len = paths.len(); let len = paths.len();
dbg!(paths); dbg!(paths);
assert_eq!(len, 4); assert_eq!(len, 4);