[BioRuby-cvs] bioruby/test/unit/bio/shell/plugin test_seq.rb, 1.6, 1.7

Mitsuteru C. Nakao nakao at pub.open-bio.org
Mon Feb 27 09:40:15 UTC 2006


Update of /home/repository/bioruby/bioruby/test/unit/bio/shell/plugin
In directory pub.open-bio.org:/tmp/cvs-serv1173/test/unit/bio/shell/plugin

Modified Files:
	test_seq.rb 
Log Message:
* Fixed Bio::Shell namespace for tesing..


Index: test_seq.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/shell/plugin/test_seq.rb,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_seq.rb	21 Feb 2006 17:38:15 -0000	1.6
--- test_seq.rb	27 Feb 2006 09:40:13 -0000	1.7
***************
*** 2,22 ****
  # test/unit/bio/shell/plugin/test_seq.rb - Unit test for Bio::Shell plugin for biological sequence manipulations
  #
! #   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,10 ----
  # test/unit/bio/shell/plugin/test_seq.rb - Unit test for Bio::Shell plugin for biological sequence manipulations
  #
! # Copyright::   Copyright (C) 2005 
! #               Mitsuteru Nakao <n at bioruby.org>
! # License::     Ruby's
  #
! # $Id$
  #
  
***************
*** 27,36 ****
  require 'test/unit'
  require 'bio/shell'
  
  module Bio
    class TestShellPluginSeq < Test::Unit::TestCase
  
- #    include Bio::Shell
- #    Bio::Shell.instance_variable_set :@config, {}
  
      def test_naseq
--- 15,41 ----
  require 'test/unit'
  require 'bio/shell'
+ require 'bio/shell/plugin/seq'
  
  module Bio
+ 
    class TestShellPluginSeq < Test::Unit::TestCase
+     include Bio::Shell
+ 
+     Bio::Shell.config = {:color => false}
+ 
+     def test_htmlseq
+       str = 'ATGC'
+       html =<<END
+ <div style="font-family:monospace;">
+ <span style="background:#64F73F;">a</span>
+ <span style="background:#3C88EE;">t</span>
+ <span style="background:#EB413C;">g</span>
+ <span style="background:#FFB340;">c</span>
+ <br>
+ </div>
+ END
+       assert_equal(html, htmlseq(str))
+     end
  
  
      def test_naseq
***************
*** 41,44 ****
--- 46,50 ----
      end
  
+ 
      def test_aaseq
        str = 'WD'
***************
*** 48,51 ****
--- 54,58 ----
      end
  
+ 
      def test_na_seqstat
        naseq = 'atgcatgcatgc'
***************
*** 113,116 ****
--- 120,124 ----
      end
  
+ 
      def test_aa_seqstat
        aaseq = 'WD'
***************
*** 139,142 ****
--- 147,151 ----
      end
  
+ 
      def test_doublehelix
        seq = 'ACGTACGTACGTACGT'
***************
*** 173,175 ****
--- 182,185 ----
  
    end
+ 
  end




More information about the bioruby-cvs mailing list