Skip to content

Commit

Permalink
add pretty_assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
kyu08 committed Nov 24, 2024
1 parent c3901ac commit ab66277
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 2 deletions.
23 changes: 23 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ tui-textarea = "0.6.0"
toml = "0.8.19"
serde = {version = "1.0.204", features = ["derive"]}
simple-home-dir = "0.4.0"
pretty_assertions = "1.4.1"
1 change: 1 addition & 0 deletions src/file/toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ mod test {
use super::*;
use crate::model::runner_type;
use anyhow::Result;
use pretty_assertions::assert_eq;

#[test]
fn parse_history_test() {
Expand Down
1 change: 1 addition & 0 deletions src/model/make.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ fn line_to_including_file_paths(line: String) -> Option<Vec<PathBuf>> {
mod test {
use super::*;
use crate::model::runner_type;
use pretty_assertions::assert_eq;
use std::{
env,
fs::{self, File},
Expand Down
1 change: 1 addition & 0 deletions src/model/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ fn line_to_target(line: String) -> Option<String> {
#[cfg(test)]
mod test {
use super::*;
use pretty_assertions::assert_eq;

#[test]
fn content_to_targets_test() {
Expand Down
4 changes: 2 additions & 2 deletions src/usecase/tui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,9 +677,9 @@ impl<'a> PartialEq for TextArea_<'a> {

#[cfg(test)]
mod test {
use crate::model::runner_type;

use super::*;
use crate::model::runner_type;
use pretty_assertions::assert_eq;
use std::env;

#[test]
Expand Down

0 comments on commit ab66277

Please sign in to comment.