INNER CODE UNIT · Rust
test_parse7
informationsea/transanno · liftover-rs/src/bedparse/mod.rs:272
fn test_parse7() {
let input = b"chr1\t1\t2\tname\tscore\tstrand\n";
let (remain, entry) = parse_bed_line(input).unwrap();
assert_eq!(
entry,
BedEntry {
chrom: b"chr1",
start: 1,
end: 2,
name: Some(b"name"),
score: Some(b"score"),
strand: Some(b"strand"),
others: None,
}
);
assert_eq!(remain, b"");
let mut output = Vec::new();
entry.write(&mut output).unwrap();