[BioRuby-cvs] bioruby/test/unit/bio/appl test_blast.rb,1.5,1.6

Mitsuteru C. Nakao nakao at dev.open-bio.org
Wed Jan 30 17:43:36 UTC 2008


Update of /home/repository/bioruby/bioruby/test/unit/bio/appl
In directory dev.open-bio.org:/tmp/cvs-serv13486/test/unit/bio/appl

Modified Files:
	test_blast.rb 
Log Message:
* Fixed the bug at building the blastall command line options ('-m 0').


Index: test_blast.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/appl/test_blast.rb,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_blast.rb	5 Apr 2007 23:35:43 -0000	1.5
--- test_blast.rb	30 Jan 2008 17:43:33 -0000	1.6
***************
*** 82,85 ****
--- 82,91 ----
      end
  
+     def test_option_set_m0
+       @blast.option = '-m 0'
+       assert_equal('-m 0', @blast.option) 
+     end
+ 
+ 
      def test_server
        assert_equal(@server, @blast.server) 
***************
*** 127,130 ****
--- 133,147 ----
         end
       end
+      
+      def test_make_command_line
+        @blast = Bio::Blast.new(@program, @db, '-m 7 -F F')
+        assert_equal(["blastall", "-p", "blastp", "-d", "test", "-m", "7", "-F", "F"], 
+                     @blast.instance_eval { make_command_line })
+      end
+      def test_make_command_line_2
+        @blast = Bio::Blast.new(@program, @db, '-m 0 -F F')
+        assert_equal(["blastall", "-p", "blastp", "-d", "test", "-m", "0", "-F",  "F"], 
+                     @blast.instance_eval { make_command_line })
+      end
  
       def test_parse_result




More information about the bioruby-cvs mailing list