[BioRuby-cvs] bioruby/test/unit/bio/appl/sosui test_report.rb, 1.2,
1.3
Mitsuteru C. Nakao
nakao at pub.open-bio.org
Tue Nov 22 03:31:50 EST 2005
Update of /home/repository/bioruby/bioruby/test/unit/bio/appl/sosui
In directory pub.open-bio.org:/tmp/cvs-serv11824/test/unit/bio/appl/sosui
Modified Files:
test_report.rb
Log Message:
* Fixed the order of arguments of assert_equal method.
Index: test_report.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/appl/sosui/test_report.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_report.rb 31 Oct 2005 17:02:45 -0000 1.2
--- test_report.rb 22 Nov 2005 08:31:48 -0000 1.3
***************
*** 39,47 ****
def test_delimiter
! assert_equal(Bio::SOSUI::Report::DELIMITER, "\n>")
end
def test_rs
! assert_equal(Bio::SOSUI::Report::RS, "\n>")
end
--- 39,47 ----
def test_delimiter
! assert_equal("\n>", Bio::SOSUI::Report::DELIMITER)
end
def test_rs
! assert_equal("\n>", Bio::SOSUI::Report::RS)
end
***************
*** 56,73 ****
def test_entry_id
! assert_equal(@obj.entry_id, 'Q9HC19')
end
def test_prediction
! assert_equal(@obj.prediction, 'MEMBRANE PROTEIN')
end
def test_tmhs
! assert_equal(@obj.tmhs.class, Array)
! assert_equal(@obj.tmhs[0].class, Bio::SOSUI::Report::TMH)
end
def test_tmh
! assert_equal(@obj.tmhs.size, 7)
end
--- 56,73 ----
def test_entry_id
! assert_equal('Q9HC19', @obj.entry_id)
end
def test_prediction
! assert_equal('MEMBRANE PROTEIN', @obj.prediction)
end
def test_tmhs
! assert_equal(Array, @obj.tmhs.class)
! assert_equal(Bio::SOSUI::Report::TMH, @obj.tmhs[0].class)
end
def test_tmh
! assert_equal(7, @obj.tmhs.size)
end
***************
*** 80,92 ****
def test_range
! assert_equal(@obj.range, 31..53)
end
def test_grade
! assert_equal(@obj.grade, 'SECONDARY')
end
def test_sequence
! assert_equal(@obj.sequence, 'HIRMTFLRKVYSILSLQVLLTTV')
end
--- 80,92 ----
def test_range
! assert_equal(31..53, @obj.range)
end
def test_grade
! assert_equal('SECONDARY', @obj.grade)
end
def test_sequence
! assert_equal('HIRMTFLRKVYSILSLQVLLTTV', @obj.sequence)
end
More information about the bioruby-cvs
mailing list