test/unit/bio/sequence/test_common.rb in bio-1.1.0 vs test/unit/bio/sequence/test_common.rb in bio-1.2.0

- old
+ new

@@ -2,11 +2,11 @@ # test/unit/bio/sequence/test_common.rb - Unit test for Bio::Sequencce::Common # # Copyright:: Copyright (C) 2006 Mitsuteru C. Nakao <n@bioruby.org> # License:: The Ruby License # -# $Id: test_common.rb,v 1.4 2007/04/05 23:35:44 trevor Exp $ +# $Id: test_common.rb,v 1.5 2007/12/03 06:19:12 nakao Exp $ # require 'pathname' libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4, 'lib')).cleanpath.to_s $:.unshift(libpath) unless $:.include?(libpath) @@ -29,19 +29,28 @@ def test_to_s assert_equal('atgcatgcatgcatgcaaaa', @obj.to_s) end + def test_to_str + assert_equal('atgcatgcatgcatgcaaaa', @obj.to_str) + end + def test_seq str = "atgcatgcatgcatgcaaaa" assert_equal(str, @obj.seq) end - # <<(*arg) def test_push str = "atgcatgcatgcatgcaaaaA" assert_equal(str, @obj << "A") + end + + # concat(*arg) + def test_concat + str = "atgcatgcatgcatgcaaaaA" + assert_equal(str, @obj.concat("A")) end # +(*arg) def test_sum str = "atgcatgcatgcatgcaaaaatgcatgcatgcatgcaaaa"