Rust · 453 bytes Raw Blame History
1 //! Two identical byte slices must produce zero critical diffs.
2
3 mod common;
4
5 use common::harness::diff_macho;
6
7 #[test]
8 fn identical_inputs_produce_zero_critical_diffs() {
9 let a = b"same bytes everywhere".to_vec();
10 let b = a.clone();
11 let report = diff_macho(&a, &b);
12 assert!(
13 report.is_clean(),
14 "identical inputs produced critical diffs: {:#?}",
15 report.critical
16 );
17 assert!(report.tolerated.is_empty());
18 }
19