Skip to main content

Improve a couple of test names

ID
cb7ad6c
date
2024-08-20 12:06:20+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
a8b0a43
message
Improve a couple of test names
changed files
1 file, 3 additions, 3 deletions

Changed files

src/main.rs (5699) → src/main.rs (5696)

diff --git a/src/main.rs b/src/main.rs
index 138bc2c..d36ac51 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -83,7 +83,7 @@ mod test_cli {
     }
 
     #[test]
-    fn it_errors_if_you_pass_width_and_height() {
+    fn it_fails_if_you_pass_width_and_height() {
         let output = get_failure(&[
             "src/tests/red.png",
             "--width=100",
@@ -101,7 +101,7 @@ mod test_cli {
     }
 
     #[test]
-    fn it_errors_if_you_pass_neither_width_nor_height() {
+    fn it_fails_if_you_pass_neither_width_nor_height() {
         let output = get_failure(&["src/tests/red.png", "--out-dir=/tmp"]);
 
         let re = Regex::new(r"the following required arguments were not provided:").unwrap();
@@ -112,7 +112,7 @@ mod test_cli {
     }
 
     #[test]
-    fn it_errors_if_you_pass_a_non_image() {
+    fn it_fails_if_you_pass_a_non_image() {
         let output = get_failure(&["Cargo.toml", "--width=50", "--out-dir=/tmp"]);
 
         assert_eq!(output.exit_code, 1);