mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Remove measure segment bitcode function
This commit is contained in:
parent
ed4d637201
commit
aee1caa0e6
1 changed files with 0 additions and 45 deletions
|
@ -61,49 +61,4 @@ mod bitcode {
|
|||
|
||||
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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue