extern crate nafcodec; use std::io::Cursor; use nafcodec::Decoder; use nafcodec::EncoderBuilder; use nafcodec::Flag; use nafcodec::Record; use nafcodec::SequenceType::Dna; fn test_records() -> Vec { vec![ Record { id: Some(String::from("r1")), comment: Some(String::from("record 1")), sequence: Some(String::from("NGCTCTTAAACCTGCTA")), quality: Some(String::from("#8CCCGGGGGGGGGGGG")), length: Some(17), }, Record { id: Some(String::from("r2")), comment: Some(String::from("record 2")), sequence: Some(String::from("NTAATAAGCAATGACGGCAGC")), quality: Some(String::from("#8AACCFF