INNER CODE UNIT · Rust

test_parse4

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

    fn test_parse4() {
        let input = b"chr1\t1\t2\nx";
        let (remain, 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,
            }
        );
        assert_eq!(remain, b"x");
        let mut output = Vec::new();
        entry.write(&mut output).unwrap();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…