[BioRuby-cvs] bioruby/test/unit/bio/shell/plugin test_seq.rb, 1.1,
1.2
Mitsuteru C. Nakao
nakao at pub.open-bio.org
Wed Nov 23 06:40:47 EST 2005
Update of /home/repository/bioruby/bioruby/test/unit/bio/shell/plugin
In directory pub.open-bio.org:/tmp/cvs-serv16568/test/unit/bio/shell/plugin
Modified Files:
test_seq.rb
Log Message:
* Fixed the order of argument of assert_equal.
Index: test_seq.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/shell/plugin/test_seq.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_seq.rb 28 Oct 2005 02:03:34 -0000 1.1
--- test_seq.rb 23 Nov 2005 11:40:45 -0000 1.2
***************
*** 35,58 ****
def test_naseq
str = 'ACGT'
! assert_equal(naseq(str).class, Bio::Sequence::NA)
! assert_equal(naseq(str), Bio::Sequence::NA.new(str))
! assert_equal(naseq(str), 'acgt')
end
def test_aaseq
str = 'WD'
! assert_equal(aaseq(str).class, Bio::Sequence::AA)
! assert_equal(aaseq(str), Bio::Sequence::AA.new('WD'))
! assert_equal(aaseq(str), 'WD')
end
def test_revseq
str = 'acgta'
! assert_equal(revseq(str), 'tacgt')
end
def test_translate
str = 'ATGATG'
! assert_equal(translate(str), Bio::Sequence::AA.new('MM'))
end
--- 35,58 ----
def test_naseq
str = 'ACGT'
! assert_equal(Bio::Sequence::NA, naseq(str).class)
! assert_equal(Bio::Sequence::NA.new(str), naseq(str))
! assert_equal('acgt', naseq(str))
end
def test_aaseq
str = 'WD'
! assert_equal(Bio::Sequence::AA, aaseq(str).class)
! assert_equal(Bio::Sequence::AA.new('WD'), aaseq(str))
! assert_equal('WD', aaseq(str))
end
def test_revseq
str = 'acgta'
! assert_equal('tacgt', revseq(str))
end
def test_translate
str = 'ATGATG'
! assert_equal(Bio::Sequence::AA.new('MM'), translate(str))
end
***************
*** 60,64 ****
str = 'ACGT'
output = ''
! assert_equal(seq_report(str), output)
end
--- 60,64 ----
str = 'ACGT'
output = ''
! assert_equal(output, seq_report(str))
end
***************
*** 67,71 ****
str = 'WD'
output = ''
! assert_equal(seq_report(str), output)
end
--- 67,71 ----
str = 'WD'
output = ''
! assert_equal(output, seq_report(str))
end
***************
*** 89,93 ****
//
END
! assert_equal(na_report(naseq), output)
end
--- 89,93 ----
//
END
! assert_equal(output, na_report(naseq))
end
***************
*** 102,106 ****
//
END
! assert_equal(aa_report(aaseq), output)
end
--- 102,106 ----
//
END
! assert_equal(output, aa_report(aaseq))
end
***************
*** 125,129 ****
at
END
! assert_equal(double_helix(seq), output)
end
--- 125,129 ----
at
END
! assert_equal(output, doublehelix(seq))
end
More information about the bioruby-cvs
mailing list