]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_ruby/test/maasha/test_fastq.rb
rewrite of FASTQ internals
[biopieces.git] / code_ruby / test / maasha / test_fastq.rb
index 84322072f72bf71d871d7f80592fa22068ed2036..b853481baef4523e8a4ea340760222931179dd90 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env ruby
-$:.unshift File.join(File.dirname(__FILE__),'..','lib')
+$:.unshift File.join(File.dirname(__FILE__), '..', '..')
 
-# Copyright (C) 2007-2010 Martin A. Hansen.
+# Copyright (C) 2007-2013 Martin A. Hansen.
 
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -26,9 +26,9 @@ $:.unshift File.join(File.dirname(__FILE__),'..','lib')
 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
 require 'test/unit'
+require 'test/helper'
 require 'maasha/fastq'
 require 'stringio'
-require 'pp'
 
 class FastqTest < Test::Unit::TestCase
   def setup
@@ -36,17 +36,12 @@ class FastqTest < Test::Unit::TestCase
     @fastq = Fastq.new(@io)
   end
 
-  def test_Fastq_get_entry_obtains_the_correct_seq_name
+  test "#get_entry obtains the correct seq_name" do
     assert_equal("test1", @fastq.get_entry.seq_name)
   end
 
-  def test_Fastq_get_entry_with_two_entries_obtain_correct
+  test "#get_entry with two entries obtain correct sequences" do
     assert_equal("ATCG", @fastq.get_entry.seq)
     assert_equal("atcg", @fastq.get_entry.seq)
   end
-
-  def test_Fastq_each_loop_ends_correctly
-    @fastq.each do |entry|
-    end
-  end
 end