Don't spam test log with useless byte asserts

This commit is contained in:
Truman Kilen 2023-02-11 19:27:30 -06:00
parent fcc868c60e
commit a3389a1aa9

View file

@ -177,10 +177,7 @@ fn test_write(_version: repak::Version, _file_name: &str, bytes: &[u8]) {
.unwrap(); .unwrap();
} }
assert_eq!( assert!(pak_writer.write_index().unwrap().into_inner() == reader.into_inner());
pak_writer.write_index().unwrap().into_inner(),
reader.into_inner()
);
} }
fn test_rewrite_index(_version: repak::Version, _file_name: &str, bytes: &[u8]) { fn test_rewrite_index(_version: repak::Version, _file_name: &str, bytes: &[u8]) {
@ -203,7 +200,7 @@ fn test_rewrite_index(_version: repak::Version, _file_name: &str, bytes: &[u8])
.unwrap() .unwrap()
.into_inner(); .into_inner();
assert_eq!(bytes, rewrite); assert!(bytes == rewrite);
} }
macro_rules! matrix_test { macro_rules! matrix_test {