[BioRuby-cvs] bioruby/test/unit/bio/appl/sosui test_report.rb, 1.1, 1.2

Mitsuteru C. Nakao nakao at pub.open-bio.org
Mon Oct 31 12:02:47 EST 2005


Update of /home/repository/bioruby/bioruby/test/unit/bio/appl/sosui
In directory pub.open-bio.org:/tmp/cvs-serv2749/test/unit/bio/appl/sosui

Modified Files:
	test_report.rb 
Log Message:
* Added unit test for Bio::SOSUI::Report::TMH.


Index: test_report.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/appl/sosui/test_report.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_report.rb	31 Oct 2005 16:26:55 -0000	1.1
--- test_report.rb	31 Oct 2005 17:02:45 -0000	1.2
***************
*** 39,47 ****
  
      def test_delimiter
!       assert_equal(Bio::SOSUI::DELIMITER, "\n>")
      end
  
      def test_rs
!       assert_equal(Bio::SOSUI::RS, "\n>")
      end
  
--- 39,47 ----
  
      def test_delimiter
!       assert_equal(Bio::SOSUI::Report::DELIMITER, "\n>")
      end
  
      def test_rs
!       assert_equal(Bio::SOSUI::Report::RS, "\n>")
      end
  
***************
*** 65,73 ****
      def test_tmhs
        assert_equal(@obj.tmhs.class, Array)
!       assert_equal(@obj.tmhs[0].class, Bio::SOSUI::TMH)
      end
  
      def test_tmh
!       assert_equal(@obj.tmh.size, 7)
      end
  
--- 65,73 ----
      def test_tmhs
        assert_equal(@obj.tmhs.class, Array)
!       assert_equal(@obj.tmhs[0].class, Bio::SOSUI::Report::TMH)
      end
  
      def test_tmh
!       assert_equal(@obj.tmhs.size, 7)
      end
  
***************
*** 76,80 ****
    class TestSOSUITMH < Test::Unit::TestCase
      def setup
!       @obj = Bio::SOSUI::Report.new(SOSUIReport).tmh.first
      end
  
--- 76,80 ----
    class TestSOSUITMH < Test::Unit::TestCase
      def setup
!       @obj = Bio::SOSUI::Report.new(SOSUIReport).tmhs.first
      end
  
***************
*** 83,88 ****
      end
  
!     def test_status
!       assert_equal(@obj.status, 'SECONDARY')
      end
      
--- 83,88 ----
      end
  
!     def test_grade
!       assert_equal(@obj.grade, 'SECONDARY')
      end
      



More information about the bioruby-cvs mailing list