Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kritikash18 committed Oct 7, 2023
1 parent 72782d1 commit 32aa50b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/expected_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fn create_uppercase_words (string_vec: &mut Vec<String>, pos: usize, uppercase_r
v[0] = v[0].to_uppercase().nth(0).unwrap();
let s: String = v.into_iter().collect();
string_vec[i] = s;
}
}
}
}

Expand All @@ -125,6 +125,7 @@ impl ExpectedInputInterface for ExpectedInput {
#[cfg(test)]
mod tests {
use std::{io::Write, time::Duration};
use crate::color_scheme::ColorScheme;

use super::*;

Expand All @@ -148,7 +149,8 @@ mod tests {
numbers_ratio: 0.05,
dictionary_path: config_file.path().to_path_buf(),
uppercase: false,
uppercase_ratio: 0.45
uppercase_ratio: 0.45,
color_config: ColorScheme::default(),
};

let expected_input = ExpectedInput::new(&config).expect("unable to create expected input");
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ mod tests {

use anyhow::{Context, Result};
use predicates::Predicate;
use tui::{backend::TestBackend, buffer::Buffer, Frame, Terminal};
use ratatui::{backend::TestBackend, buffer::Buffer, Frame, Terminal};

use crate::{
args::Args,
Expand Down

0 comments on commit 32aa50b

Please sign in to comment.