Sha256: 3e0642d079f3ebc073f4677d786e3a116e7b427a068f508357c8b2b74b0ede03
Contents?: true
Size: 965 Bytes
Versions: 1
Compression:
Stored size: 965 Bytes
Contents
# RSpec for BioRuby-GFF3-Plugin. Run with something like: # # ruby -I ../bioruby/lib/ ~/.gems/bin/spec spec/gff3_spec.rb # # Copyright (C) 2010 Pjotr Prins <pjotr.prins@thebird.nl> # $: << "../lib" require 'bio/db/gff/gffdb' TEST1='test/data/gff/test.gff3' TEST2='test/data/gff/standard.gff3' describe Bio::GFF::GFF3::FileIterator, "iterates a GFF3 file" do it "should parse a file and yield records" do iter = Bio::GFF::GFF3::FileIterator.new(TEST1) iter.each_rec do | id, rec | # p [id, rec, rec.io_seek] rec.io_seek.should == 51 break end end it "should handle embedded FASTA records" do iter = Bio::GFF::GFF3::FileIterator.new(TEST1) last = nil iter.each_rec do | id, rec | # p [id, rec] last = rec end last.io_seek.should == 3256 firstid = 'unknown' iter.each_sequence do | id, seq | # p [id, seq] firstid = id end firstid.should == "test02" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bio-gff3-0.6.0 | spec/gff3_fileiterator_spec.rb |