[BioRuby-cvs] bioruby/test/unit/bio/appl test_blast.rb,1.1,1.2
Mitsuteru C. Nakao
nakao at pub.open-bio.org
Tue Nov 22 21:47:21 EST 2005
Update of /home/repository/bioruby/bioruby/test/unit/bio/appl
In directory pub.open-bio.org:/tmp/cvs-serv14882/test/unit/bio/appl
Modified Files:
test_blast.rb
Log Message:
* Fixed the order of arguments of assert_equal.
Index: test_blast.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/appl/test_blast.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_blast.rb 24 Sep 2005 16:38:55 -0000 1.1
--- test_blast.rb 23 Nov 2005 02:47:19 -0000 1.2
***************
*** 62,120 ****
def test_new
blast = Bio::Blast.new(@program, @db)
! assert_equal(blast.program, @program)
! assert_equal(blast.db, @db)
assert(blast.options)
! assert_equal(blast.server, 'local')
! assert_equal(blast.blastall, 'blastall')
end
def test_new_opt_string
blast = Bio::Blast.new(@program, @db, '-m 7 -F F')
! assert_equal(blast.options, ['-m', '7', '-F', 'F'])
end
def test_program
! assert_equal(@blast.program, @program)
end
def test_db
! assert_equal(@blast.db, @db)
end
def test_options
! assert_equal(@blast.options, [])
end
def test_option
! assert_equal(@blast.option, '')
end
def test_option_set
@blast.option = '-m 7 -p T'
! assert_equal(@blast.option, '-m 7 -p T')
end
def test_server
! assert_equal(@blast.server, @server)
end
def test_blastll
! assert_equal(@blast.blastall, 'blastall')
end
def test_matrix
! assert_equal(@blast.matrix, nil)
end
def test_filter
! assert_equal(@blast.filter, nil)
end
def test_parser
! assert_equal(@blast.instance_eval { @parser }, nil)
end
def test_output
! assert_equal(@blast.output, '')
end
--- 62,120 ----
def test_new
blast = Bio::Blast.new(@program, @db)
! assert_equal(@program, blast.program)
! assert_equal(@db, blast.db)
assert(blast.options)
! assert_equal('local', blast.server)
! assert_equal('blastall', blast.blastall)
end
def test_new_opt_string
blast = Bio::Blast.new(@program, @db, '-m 7 -F F')
! assert_equal(['-m', '7', '-F', 'F'], blast.options)
end
def test_program
! assert_equal(@program, @blast.program)
end
def test_db
! assert_equal(@db, @blast.db)
end
def test_options
! assert_equal([], @blast.options)
end
def test_option
! assert_equal('', @blast.option)
end
def test_option_set
@blast.option = '-m 7 -p T'
! assert_equal('-m 7 -p T', @blast.option)
end
def test_server
! assert_equal(@server, @blast.server)
end
def test_blastll
! assert_equal('blastall', @blast.blastall)
end
def test_matrix
! assert_equal(nil, @blast.matrix)
end
def test_filter
! assert_equal(nil, @blast.filter)
end
def test_parser
! assert_equal(nil, @blast.instance_eval { @parser })
end
def test_output
! assert_equal('', @blast.output)
end
More information about the bioruby-cvs
mailing list