aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEdvard Thörnros <edvard.thornros@gmail.com>2021-02-18 20:03:39 +0100
committerGitHub <noreply@github.com>2021-02-18 20:03:39 +0100
commit33e87da47b0d7dedc0b88d7e732f398fc602deca (patch)
tree4eee911fad39b9485db646ee85fa01ee7e33d6f1 /src
parent946828d4cd281c073663f3c5b078c1cf5ed1ddde (diff)
downloadsylt-33e87da47b0d7dedc0b88d7e732f398fc602deca.tar.gz
stop scrreaming on errors
Co-authored-by: Gustav Sörnäs <gustav@sornas.net>
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3fa4cb6..d387316 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -733,7 +733,7 @@ mod tests {
let errs = if let Err(errs) = $result {
errs
} else {
- eprintln!(" PROGRAM SUCCEEDED, WHEN IT SHOULD FAIL!");
+ eprintln!(" Program succeeded when it should've failed");
unreachable!();
};
if !matches!(
@@ -746,12 +746,12 @@ mod tests {
},
)*]
) {
- eprintln!("UNEXPECTED ERRORS");
- eprint!(" GOT: [");
+ eprintln!("Unexpected errors");
+ eprint!(" Got: [");
for err in errs {
eprint!(" ErrorKind::{:?} ", err.kind);
}
- eprint!("]\n WANT: [");
+ eprint!("]\n Want: [");
$(
eprint!(" {} ", stringify!($kind));
)*
@@ -797,7 +797,7 @@ mod tests {
for e in errs.iter() {
println!("{}", e);
}
- eprintln!(" {} - FAILED\n", stringify!($fn));
+ eprintln!(" {} - failed\n", stringify!($fn));
unreachable!();
}
}