diff --git a/src/lib.rs b/src/lib.rs index eac2650..fa857b2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -238,7 +238,7 @@ mod tests { #[test] fn case_render() { - let cli = Cli::parse_from([APP_NAME, "render", "avatar.jpg", "-o", "img.txt", "-s", "0.65", "0.25", "-c", "20"]); + let cli = Cli::parse_from([APP_NAME, "render", "./tests/avatar.jpg", "-o", "./tests/img.txt", "-s", "0.65", "0.25", "-c", "20"]); match &cli.command { Commands::Render { input_file_path, output, scale, contrast } => { @@ -250,7 +250,7 @@ mod tests { #[test] fn case_play() { - let cli = Cli::parse_from([APP_NAME, "open", "img.txt"]); + let cli = Cli::parse_from([APP_NAME, "open", "./tests/img.txt"]); match &cli.command { Commands::Open { input_file_path } => { diff --git a/tests/avatar.jpg b/tests/avatar.jpg new file mode 100644 index 0000000..c4f3e8a Binary files /dev/null and b/tests/avatar.jpg differ diff --git a/tests/img.txt b/tests/img.txt new file mode 100644 index 0000000..be0f95d Binary files /dev/null and b/tests/img.txt differ