[BioRuby-cvs] bioruby/test/unit/bio/data test_na.rb,1.5,1.6

Mitsuteru C. Nakao nakao at pub.open-bio.org
Wed Feb 8 13:57:03 UTC 2006


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

Modified Files:
	test_na.rb 
Log Message:
* Changed on lisence.
* test_to_re: added tests to check the Bio::NucleicAcid.to_re.


Index: test_na.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/data/test_na.rb,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_na.rb	25 Nov 2005 15:59:29 -0000	1.5
--- test_na.rb	8 Feb 2006 13:57:01 -0000	1.6
***************
*** 2,20 ****
  # test/unit/bio/data/test_na.rb - Unit test for Bio::NucleicAcid
  #
! #   Copyright (C) 2005 Mitsuteru Nakao <n at bioruby.org>
! #
! #  This library is free software; you can redistribute it and/or
! #  modify it under the terms of the GNU Lesser General Public
! #  License as published by the Free Software Foundation; either
! #  version 2 of the License, or (at your option) any later version.
! #
! #  This library is distributed in the hope that it will be useful,
! #  but WITHOUT ANY WARRANTY; without even the implied warranty of
! #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
! #  Lesser General Public License for more details.
! #
! #  You should have received a copy of the GNU Lesser General Public
! #  License along with this library; if not, write to the Free Software
! #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
  #
  #  $Id$
--- 2,7 ----
  # test/unit/bio/data/test_na.rb - Unit test for Bio::NucleicAcid
  #
! # Copyright::  Copyright (C) 2005,2006 Mitsuteru Nakao <n at bioruby.org>
! # Lisence::    Ruby's
  #
  #  $Id$
***************
*** 48,51 ****
--- 35,39 ----
  
    class TestNA < Test::Unit::TestCase
+ 
      def setup
        @obj = Bio::NucleicAcid.new
***************
*** 54,59 ****
      def test_to_re
        re = /[tc][ag][at][gc][tg][ac][tgc][atg][agc][atgc]atgc/
!       assert_equal(re, @obj.to_re('yrwskmbdvnatgc'))
!       assert_equal(re, Bio::NucleicAcid.to_re('yrwskmbdvnatgc'))
      end
  
--- 42,50 ----
      def test_to_re
        re = /[tc][ag][at][gc][tg][ac][tgc][atg][agc][atgc]atgc/
!       str = 'yrwskmbdvnatgc'
!       str0 = str.clone
!       assert_equal(re, @obj.to_re(str))
!       assert_equal(str0, str)
!       assert_equal(re, Bio::NucleicAcid.to_re(str))
      end
  




More information about the bioruby-cvs mailing list