[BioRuby-cvs] bioruby/test/unit/bio test_db.rb,1.1,1.2
Mitsuteru C. Nakao
nakao at pub.open-bio.org
Wed Nov 23 06:44:14 EST 2005
Update of /home/repository/bioruby/bioruby/test/unit/bio
In directory pub.open-bio.org:/tmp/cvs-serv16596/test/unit/bio
Modified Files:
test_db.rb
Log Message:
* Fixed the order of arguments of assert_equal.
Index: test_db.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/test_db.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_db.rb 24 Sep 2005 23:23:00 -0000 1.1
--- test_db.rb 23 Nov 2005 11:44:12 -0000 1.2
***************
*** 45,57 ****
def test_tags
! assert_equal(@obj.tags, ["TAG"])
end
def test_exists
! assert_equal(@obj.exists?("TAG"), true)
end
def test_get
! assert_equal(@obj.get("TAG"), "TAG value1\n value2")
end
--- 45,57 ----
def test_tags
! assert_equal(["TAG"], @obj.tags)
end
def test_exists
! assert_equal(true, @obj.exists?("TAG"))
end
def test_get
! assert_equal("TAG value1\n value2", @obj.get("TAG"))
end
***************
*** 72,76 ****
def test_fetch
! assert_equal(@obj.fetch("LOCUS"), 'locus')
end
--- 72,76 ----
def test_fetch
! assert_equal('locus', @obj.fetch("LOCUS"))
end
***************
*** 100,105 ****
def test_fetch
! assert_equal(@obj.fetch("ID"), 'id')
! assert_equal(@obj.fetch("CC"), 'cc1 cc2')
end
--- 100,105 ----
def test_fetch
! assert_equal('id', @obj.fetch("ID"))
! assert_equal('cc1 cc2', @obj.fetch("CC"))
end
More information about the bioruby-cvs
mailing list