INNER CODE UNIT · Rust

test_parse3

informationsea/transanno · liftover-rs/src/bedparse/mod.rs:207

    fn test_parse3() {
        let input = b"chr1\t1\t2\n";
        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, input);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…