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

Naohisa Goto ngoto at dev.open-bio.org
Fri Jan 12 16:19:26 UTC 2007


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

Modified Files:
	test_newick.rb 
Log Message:
changed to use Bio::Tree#get_node_by_name.


Index: test_newick.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/db/test_newick.rb,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_newick.rb	11 Jan 2007 14:35:32 -0000	1.3
--- test_newick.rb	12 Jan 2007 16:19:24 -0000	1.4
***************
*** 46,50 ****
        assert_equal(9, tree.descendents(tree.root).size)
        assert_equal(6, tree.leaves.size)
!       leaf = tree.nodes.find { |x| x.name == 'HexFLZ83' }
        assert_equal(3, tree.ancestors(leaf).size)
        assert_equal(tree.path(tree.root, leaf)[1], tree.ancestors(leaf)[1])
--- 46,50 ----
        assert_equal(9, tree.descendents(tree.root).size)
        assert_equal(6, tree.leaves.size)
!       leaf = tree.get_node_by_name('HexFLZ83')
        assert_equal(3, tree.ancestors(leaf).size)
        assert_equal(tree.path(tree.root, leaf)[1], tree.ancestors(leaf)[1])




More information about the bioruby-cvs mailing list