X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=code_ruby%2Ftest%2Fmaasha%2Ftest_seq.rb;h=b3bdd790baa16546e74d655e79dd1ec06f3d57eb;hb=128ec42589b930642cf8863baa8a844dc5fd2c3f;hp=eab90cb758f1a95a4d1f71a968f5681f63728da7;hpb=b0f2727000b3611af4b232ce71f86a577696eb88;p=biopieces.git diff --git a/code_ruby/test/maasha/test_seq.rb b/code_ruby/test/maasha/test_seq.rb index eab90cb..b3bdd79 100755 --- a/code_ruby/test/maasha/test_seq.rb +++ b/code_ruby/test/maasha/test_seq.rb @@ -373,6 +373,18 @@ class TestSeq < Test::Unit::TestCase assert_equal("HHHHIIII", @entry.qual) end + test "#[] returns correctly" do + @entry.seq = "atcg" + @entry.type = :dna + @entry.qual = "FGHI" + + fail + end + + test "[]= returns correctly" do + fail + end + test "#subseq with start < 0 raises" do @entry.seq = "ATCG" assert_raise(SeqError) { @entry.subseq(-1, 1) }