Skip to content

Commit c5c1fe9

Browse files
committed
format assert
1 parent adeb50d commit c5c1fe9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

git2-hooks/src/lib.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,14 @@ exit 0
335335
{
336336
assert_eq!(code, Some(42));
337337
assert_eq!(h, hook.hook);
338-
assert_eq!(stdout.as_str().trim_ascii_end(), TEXT);
338+
assert_eq!(
339+
stdout.as_str().trim_ascii_end(),
340+
TEXT,
341+
"{:?} != {TEXT:?} | {:?} != {:?}",
342+
stdout.as_str().trim_ascii_end(),
343+
stdout.as_str().trim_ascii_end().as_bytes(),
344+
TEXT.as_bytes()
345+
);
339346
assert!(stderr.is_empty());
340347
} else {
341348
panic!("run_hook should've failed");

0 commit comments

Comments
 (0)