Remove measure segment bitcode function

This commit is contained in:
Chad Stearns 2020-10-20 20:40:23 -04:00
parent ed4d637201
commit aee1caa0e6

View file

@ -61,49 +61,4 @@ mod bitcode {
splits_to("def", "!!!!!!", &[(&"def").as_bytes()]); splits_to("def", "!!!!!!", &[(&"def").as_bytes()]);
} }
#[test]
fn measure_next_split_segment() {
assert_eq!(
measure_next_split_segment_length_(
0,
(&"de!!!de!!!de").as_bytes(),
(&"!!!").as_bytes()
),
2
);
assert_eq!(
measure_next_split_segment_length_(
5,
(&"de!!!abcde!!!de").as_bytes(),
(&"!!!").as_bytes()
),
5
);
assert_eq!(
measure_next_split_segment_length_(
13,
(&"de!!!abcde!!!de").as_bytes(),
(&"!!!").as_bytes()
),
2
);
assert_eq!(
measure_next_split_segment_length_(0, (&"!!!").as_bytes(), (&"!!!").as_bytes()),
0
);
assert_eq!(
measure_next_split_segment_length_(0, (&"a!!b!!!").as_bytes(), (&"!!!").as_bytes()),
4
);
assert_eq!(
measure_next_split_segment_length_(0, (&"abcde!!!").as_bytes(), (&"!!!").as_bytes()),
5
);
}
} }