Sha256: e93483559c9c5d2933b546a5f93f40a1e901f3f34fd6c677228286a0a41fdced
Contents?: true
Size: 839 Bytes
Versions: 14
Compression:
Stored size: 839 Bytes
Contents
# # test/unit/bio/io/test_fastacmd.rb - Unit test for Bio::Blast::Fastacmd. # # Copyright:: Copyright (C) 2006 Mitsuteru Nakao <n@bioruby.org> # License:: The Ruby License # # $Id:$ # require 'pathname' libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4, 'lib')).cleanpath.to_s $:.unshift(libpath) unless $:.include?(libpath) require 'test/unit' require 'bio/io/fastacmd' module Bio class TestFastacmd < Test::Unit::TestCase def setup @obj = Bio::Blast::Fastacmd.new('/dev/null') end def test_database assert_equal('/dev/null', @obj.database) end def test_fastacmd assert_equal("fastacmd", @obj.fastacmd) end def test_methods method_list = [ :get_by_id, :fetch, :each_entry, :each ] method_list.each do |method| assert(@obj.respond_to?(method)) end end end end
Version data entries
14 entries across 14 versions & 4 rubygems