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