[BioRuby-cvs] bioruby/test/unit/bio/appl/tmhmm test_report.rb, 1.1,
1.2
Mitsuteru C. Nakao
nakao at pub.open-bio.org
Wed Nov 23 00:10:36 EST 2005
Update of /home/repository/bioruby/bioruby/test/unit/bio/appl/tmhmm
In directory pub.open-bio.org:/tmp/cvs-serv15316/test/unit/bio/appl/tmhmm
Modified Files:
test_report.rb
Log Message:
* Fixed the order of arguments of assert_equal.
Index: test_report.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/appl/tmhmm/test_report.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_report.rb 1 Nov 2005 05:13:57 -0000 1.1
--- test_report.rb 23 Nov 2005 05:10:34 -0000 1.2
***************
*** 49,83 ****
def test_entry_id
! assert_equal(@obj.entry_id, 'O42385')
end
def test_query_len
! assert_equal(@obj.query_len, 423)
end
def test_predicted_tmhs
! assert_equal(@obj.predicted_tmhs, 7)
end
def test_tmhs
! assert_equal(@obj.tmhs.class, Array)
! assert_equal(@obj.tmhs.size, 15)
end
def test_exp_aas_in_tmhs
! assert_equal(@obj.exp_aas_in_tmhs, 157.40784)
end
def test_exp_first_60aa
! assert_equal(@obj.exp_first_60aa, 13.85627)
end
def test_total_prob_of_N_in
! assert_equal(@obj.total_prob_of_N_in, 0.00993)
end
def test_helix
! assert_equal(@obj.helix.size, 7)
! assert_equal(@obj.helix[0].class, Bio::TMHMM::TMH)
end
--- 49,83 ----
def test_entry_id
! assert_equal('O42385', @obj.entry_id)
end
def test_query_len
! assert_equal(423, @obj.query_len)
end
def test_predicted_tmhs
! assert_equal(7, @obj.predicted_tmhs)
end
def test_tmhs
! assert_equal(Array, @obj.tmhs.class)
! assert_equal(15, @obj.tmhs.size)
end
def test_exp_aas_in_tmhs
! assert_equal(157.40784, @obj.exp_aas_in_tmhs)
end
def test_exp_first_60aa
! assert_equal(13.85627, @obj.exp_first_60aa)
end
def test_total_prob_of_N_in
! assert_equal(0.00993, @obj.total_prob_of_N_in)
end
def test_helix
! assert_equal(7, @obj.helix.size)
! assert_equal(Bio::TMHMM::TMH, @obj.helix[0].class)
end
***************
*** 103,107 ****
"O42385\tTMHMM2.0\tTMhelix\t381\t403",
"O42385\tTMHMM2.0\tinside\t404\t423"].join("\n")
! assert_equal(@obj.to_s, str)
end
--- 103,107 ----
"O42385\tTMHMM2.0\tTMhelix\t381\t403",
"O42385\tTMHMM2.0\tinside\t404\t423"].join("\n")
! assert_equal(str, @obj.to_s)
end
***************
*** 115,135 ****
def test_entry_id
! assert_equal(@obj.entry_id, 'O42385')
end
def test_version
! assert_equal(@obj.version, 'TMHMM2.0')
end
def test_status
! assert_equal(@obj.status, 'outside')
end
def test_range
! assert_equal(@obj.range, 1..46)
end
def test_pos
! assert_equal(@obj.pos, 1..46)
end
--- 115,135 ----
def test_entry_id
! assert_equal('O42385', @obj.entry_id)
end
def test_version
! assert_equal('TMHMM2.0', @obj.version)
end
def test_status
! assert_equal('outside', @obj.status)
end
def test_range
! assert_equal(1..46, @obj.range)
end
def test_pos
! assert_equal(1..46, @obj.pos)
end
More information about the bioruby-cvs
mailing list