[BioRuby-cvs] bioruby/test/unit/bio/util test_contingency_table.rb,
1.1, 1.2
Mitsuteru C. Nakao
nakao at pub.open-bio.org
Wed Nov 23 06:55:19 EST 2005
Update of /home/repository/bioruby/bioruby/test/unit/bio/util
In directory pub.open-bio.org:/tmp/cvs-serv16668/test/unit/bio/util
Modified Files:
test_contingency_table.rb
Log Message:
* Fixed the order of arguments of assert_equal.
Index: test_contingency_table.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/util/test_contingency_table.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_contingency_table.rb 15 Nov 2005 16:42:54 -0000 1.1
--- test_contingency_table.rb 23 Nov 2005 11:55:17 -0000 1.2
***************
*** 84,96 ****
! #assert_equal(results[0][2], 2.4)
! assert_equal(results[0][2].to_s, '2.4')
! assert_equal(results[0][3].to_s, '0.534522483824849')
! assert_equal(results[5][2].to_s, '12.0')
! assert_equal(results[5][3].to_s, '0.816496580927726')
! assert_equal(results[9][2].to_s, '2.4')
! assert_equal(results[9][3].to_s, '0.534522483824849')
ctable = Bio::ContingencyTable.new
--- 84,96 ----
! #assert_equal(2.4, results[0][2])
! assert_equal('2.4', results[0][2].to_s)
! assert_equal('0.534522483824849', results[0][3].to_s)
! assert_equal('12.0', results[5][2].to_s)
! assert_equal('0.816496580927726', results[5][3].to_s)
! assert_equal('2.4', results[9][2].to_s)
! assert_equal('0.534522483824849', results[9][3].to_s)
ctable = Bio::ContingencyTable.new
***************
*** 98,104 ****
ctable.table['a']['g'] = 2
ctable.table['g']['t'] = 3
! assert_equal(ctable.chi_square.to_s, '1.28571428571429')
! assert_equal(ctable.row_sum_all, ctable.column_sum_all)
! assert_equal(ctable.table_sum_all, ctable.column_sum_all)
end
--- 98,104 ----
ctable.table['a']['g'] = 2
ctable.table['g']['t'] = 3
! assert_equal('1.28571428571429', ctable.chi_square.to_s)
! assert_equal(ctable.column_sum_all, ctable.row_sum_all)
! assert_equal(ctable.column_sum_all, ctable.table_sum_all)
end
More information about the bioruby-cvs
mailing list