[BioRuby-cvs] bioruby/test/unit/bio/sequence test_common.rb, 1.1, 1.2

Mitsuteru C. Nakao nakao at pub.open-bio.org
Tue Feb 7 16:53:10 UTC 2006


Update of /home/repository/bioruby/bioruby/test/unit/bio/sequence
In directory pub.open-bio.org:/tmp/cvs-serv5892/test/unit/bio/sequence

Modified Files:
	test_common.rb 
Log Message:
* Removed test_subseq_returns_nil_blank_sequence_default_end and 
  test_subseq_returns_nil_start_less_than_one test methods.
* Added test_subseq_returns_RuntimeError_blank_sequence_default_end and 
  test_subseq_returns_RuntimeError_start_less_than_one test methods.



Index: test_common.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/sequence/test_common.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_common.rb	5 Feb 2006 17:39:27 -0000	1.1
--- test_common.rb	7 Feb 2006 16:53:08 -0000	1.2
***************
*** 136,149 ****
      end
  
!     def test_subseq_returns_nil_blank_sequence_default_end
        sequence = TSequence.new("")
!       assert_equal(nil, sequence.subseq(5))
      end
  
!     def test_subseq_returns_nil_start_less_than_one
        sequence = TSequence.new("blahblah")
!       assert_nil(sequence.subseq(0))
      end
!     
      def test_subseq_returns_subsequence
        sequence = TSequence.new("hahasubhehe")
--- 136,149 ----
      end
  
!     def test_subseq_returns_RuntimeError_blank_sequence_default_end
        sequence = TSequence.new("")
!       assert_raise(RuntimeError) { sequence.subseq(5) }
      end
  
!     def test_subseq_returns_RuntimeError_start_less_than_one
        sequence = TSequence.new("blahblah")
!       assert_raise(RuntimeError) { sequence.subseq(0) }
      end
! 
      def test_subseq_returns_subsequence
        sequence = TSequence.new("hahasubhehe")




More information about the bioruby-cvs mailing list