]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_ruby/test/maasha/test_seq.rb
added to_fastq method seq.rb
[biopieces.git] / code_ruby / test / maasha / test_seq.rb
index 7859fbef86a08b5f8802727e37f4243ba960102f..cda1f94045b0752b89deedf75329a7d37803cb94 100755 (executable)
@@ -168,6 +168,13 @@ class TestSeq < Test::Unit::TestCase
     assert_equal(">test\nAT\nCG\n", entry.to_fasta(2))
   end
 
+  def test_Seq_to_fastq_returns_correct_entry
+    @entry.seq_name = 'test'
+    @entry.seq      = 'ATCG'
+    @entry.qual     = 'hhhh'
+    assert_equal("@test\nATCG\n+\nhhhh\n", @entry.to_fastq)
+  end
+
   def test_Seq_to_key_with_bad_residue_raises
     entry = Seq.new("test", "AUCG")
     assert_raise(SeqError) { entry.to_key }