Skip to content

Commit

Permalink
Remove unnecessary references
Browse files Browse the repository at this point in the history
  • Loading branch information
spenserblack committed Nov 2, 2023
1 parent 6995172 commit 19bb10a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ mod test {

assert_eq!(
config,
CliOptions::parse_from(&[
CliOptions::parse_from([
"onefetch",
"/tmp/folder",
"--number-of-authors",
Expand All @@ -406,22 +406,22 @@ mod test {

#[test]
fn test_config_with_image_protocol_but_no_image() {
assert!(CliOptions::try_parse_from(&["onefetch", "--image-protocol", "sixel"]).is_err())
assert!(CliOptions::try_parse_from(["onefetch", "--image-protocol", "sixel"]).is_err())
}

#[test]
fn test_config_with_color_resolution_but_no_image() {
assert!(CliOptions::try_parse_from(&["onefetch", "--color-resolution", "32"]).is_err())
assert!(CliOptions::try_parse_from(["onefetch", "--color-resolution", "32"]).is_err())
}

#[test]
fn test_config_with_ascii_colors_but_out_of_bounds() {
assert!(CliOptions::try_parse_from(&["onefetch", "--ascii-colors", "17"]).is_err())
assert!(CliOptions::try_parse_from(["onefetch", "--ascii-colors", "17"]).is_err())
}

#[test]
fn test_config_with_text_colors_but_out_of_bounds() {
assert!(CliOptions::try_parse_from(&["onefetch", "--text-colors", "17"]).is_err())
assert!(CliOptions::try_parse_from(["onefetch", "--text-colors", "17"]).is_err())
}
}

Expand Down

0 comments on commit 19bb10a

Please sign in to comment.