]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_ruby/test/maasha/test_seq.rb
fixed unit tests for reverse and revcomp in seq.rb
[biopieces.git] / code_ruby / test / maasha / test_seq.rb
index 78a6543792350dd7692c37137b34ea1532c8d86e..29990b7b5fe2d9fcbb78dea19afc8f9c485b70d0 100755 (executable)
@@ -196,7 +196,7 @@ class TestSeq < Test::Unit::TestCase
 
   def test_Seq_reverse_returns_correctly
     @entry.seq = "ATCG"
-    assert_equal("GCTA", @entry.reverse)
+    assert_equal("GCTA", @entry.reverse.seq)
   end
 
   def test_Seq_complement_raises_if_no_sequence
@@ -225,13 +225,13 @@ class TestSeq < Test::Unit::TestCase
   def test_Seq_reverse_complement_for_DNA_is_correct
     @entry.seq  = 'ATCGatcg'
     @entry.type = 'dna'
-    assert_equal("cgatCGAT", @entry.reverse_complement)
+    assert_equal("cgatCGAT", @entry.reverse_complement.seq)
   end
 
   def test_Seq_reverse_complement_for_RNA_is_correct
     @entry.seq  = 'AUCGaucg'
     @entry.type = 'rna'
-    assert_equal("cgauCGAU", @entry.reverse_complement)
+    assert_equal("cgauCGAU", @entry.reverse_complement.seq)
   end
 
   def test_Seq_hamming_distance_returns_correctly