[BioRuby-cvs] bioruby/test/unit/bio test_map.rb,1.3,1.4

Jan Aerts aerts at dev.open-bio.org
Wed Mar 28 21:25:04 UTC 2007


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

Modified Files:
	test_map.rb 
Log Message:
Trivial.


Index: test_map.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/test_map.rb,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_map.rb	27 Jun 2006 12:37:42 -0000	1.3
--- test_map.rb	28 Mar 2007 21:25:02 -0000	1.4
***************
*** 112,116 ****
    end
  	
!   class CloneActsLikeMap
      include Bio::Map::ActsLikeMap
      def initialize
--- 112,116 ----
    end
  	
!   class CloneToActLikeMap
      include Bio::Map::ActsLikeMap
      def initialize
***************
*** 122,129 ****
    class TestActsLikeMap < Test::Unit::TestCase
      def setup
!       @clone = CloneActsLikeMap.new
      end
      def test_mixin
!       assert_instance_of(CloneActsLikeMap, @clone)
        assert_respond_to(@clone, 'contains_marker?')
        assert_respond_to(@clone, 'add_mapping_as_map')
--- 122,129 ----
    class TestActsLikeMap < Test::Unit::TestCase
      def setup
!       @clone = CloneToActLikeMap.new
      end
      def test_mixin
!       assert_instance_of(CloneToActLikeMap, @clone)
        assert_respond_to(@clone, 'contains_marker?')
        assert_respond_to(@clone, 'add_mapping_as_map')
***************
*** 132,136 ****
    end
  
!   class CloneActsLikeMarker
      include Bio::Map::ActsLikeMarker
      def initialize
--- 132,136 ----
    end
  
!   class CloneToActLikeMarker
      include Bio::Map::ActsLikeMarker
      def initialize
***************
*** 142,150 ****
    class TestActsLikeMarker < Test::Unit::TestCase
      def setup
!       @clone = CloneActsLikeMarker.new
      end
      
      def test_mixin
!       assert_instance_of(CloneActsLikeMarker, @clone)
        assert_respond_to(@clone, 'mapped_to?')
        assert_respond_to(@clone, 'add_mapping_as_marker')
--- 142,150 ----
    class TestActsLikeMarker < Test::Unit::TestCase
      def setup
!       @clone = CloneToActLikeMarker.new
      end
      
      def test_mixin
!       assert_instance_of(CloneToActLikeMarker, @clone)
        assert_respond_to(@clone, 'mapped_to?')
        assert_respond_to(@clone, 'add_mapping_as_marker')
***************
*** 152,156 ****
    end
  
!   class CloneActsLikeMapAndMarker
      include Bio::Map::ActsLikeMap
      include Bio::Map::ActsLikeMarker
--- 152,156 ----
    end
  
!   class CloneToActLikeMapAndMarker
      include Bio::Map::ActsLikeMap
      include Bio::Map::ActsLikeMarker
***************
*** 164,174 ****
    class TestActsLikeMapAndMarker < Test::Unit::TestCase
      def setup
!       @clone_a = CloneActsLikeMapAndMarker.new
!       @clone_b = CloneActsLikeMapAndMarker.new
        @clone_a.add_mapping_as_map(@clone_b, nil)
      end
      
      def test_mixin
!       assert_instance_of(CloneActsLikeMapAndMarker, @clone_a)
        assert_respond_to(@clone_a, 'contains_marker?')
        assert_respond_to(@clone_a, 'add_mapping_as_map')
--- 164,174 ----
    class TestActsLikeMapAndMarker < Test::Unit::TestCase
      def setup
!       @clone_a = CloneToActLikeMapAndMarker.new
!       @clone_b = CloneToActLikeMapAndMarker.new
        @clone_a.add_mapping_as_map(@clone_b, nil)
      end
      
      def test_mixin
!       assert_instance_of(CloneToActLikeMapAndMarker, @clone_a)
        assert_respond_to(@clone_a, 'contains_marker?')
        assert_respond_to(@clone_a, 'add_mapping_as_map')
***************
*** 182,197 ****
      end
    end
-   
-   class Clone
-     include Bio::Map::ActsLikeMap
-     include Bio::Map::ActsLikeMarker
-     
-     def initialize(name)
-       @name = name
-       @mappings_as_map = Array.new
-       @mappings_as_marker = Array.new
-     end
-     attr_accessor :name, :mappings_as_map, :mappings_as_marker
-   end
-   
  end
--- 182,184 ----




More information about the bioruby-cvs mailing list