#!/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
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
require 'test/unit'
+require 'test/helper'
require 'maasha/fastq'
require 'stringio'
-require 'pp'
class FastqTest < Test::Unit::TestCase
def setup
@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