Skip to content

Commit

Permalink
Making tests work (#5)
Browse files Browse the repository at this point in the history
* getting tests to work

---------

Co-authored-by: Nicholas Nguyen <nicholas.nguyen@chargeitspot.com>
  • Loading branch information
NicholasQNguyen and NicholasQNguyen authored Apr 27, 2024
1 parent b169373 commit 78f3804
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 } => {
Expand All @@ -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 } => {
Expand Down
Binary file added tests/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tests/img.txt
Binary file not shown.

0 comments on commit 78f3804

Please sign in to comment.