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