test(derive): Improve help output assertions

This commit is contained in:
Ed Page 2022-06-03 13:25:17 -05:00
parent 52e2874c03
commit 11fbe7e54b

View file

@ -363,7 +363,7 @@ OPTIONS:
let mut buffer: Vec<u8> = Default::default();
cmd.write_help(&mut buffer).unwrap();
let help = String::from_utf8(buffer).unwrap();
assert_eq!(help, HELP);
snapbox::assert_eq(HELP, help);
}
#[test]
@ -420,7 +420,7 @@ OPTIONS:
let mut buffer: Vec<u8> = Default::default();
cmd.write_help(&mut buffer).unwrap();
let help = String::from_utf8(buffer).unwrap();
assert_eq!(help, HELP);
snapbox::assert_eq(HELP, help);
}
#[test]
@ -476,5 +476,5 @@ OPTIONS:
let mut buffer: Vec<u8> = Default::default();
cmd.write_help(&mut buffer).unwrap();
let help = String::from_utf8(buffer).unwrap();
assert_eq!(help, HELP);
snapbox::assert_eq(HELP, help);
}