test/unit/bio/sequence/test_na.rb in bio-1.4.3.0001 vs test/unit/bio/sequence/test_na.rb in bio-1.5.0
- old
+ new
@@ -63,19 +63,21 @@
str = 'atgcatgcatgcatgcaaaa'
str_fcomp = 'tacgtacgtacgtacgtttt'
fcomp = @obj.forward_complement
assert_equal(str_fcomp, @obj.forward_complement)
assert_equal(str, @obj)
+ assert_not_equal(fcomp.__id__, @obj.forward_complement.__id__)
assert_equal(str_fcomp, @obj.forward_complement!)
assert_equal(str_fcomp, @obj)
end
def test_reverse_complement
str = 'atgcatgcatgcatgcaaaa'
str_rcomp = 'tacgtacgtacgtacgtttt'.reverse
- rcomp = @obj.forward_complement
+ rcomp = @obj.reverse_complement
assert_equal(str_rcomp, @obj.reverse_complement)
assert_equal(str, @obj)
+ assert_not_equal(rcomp.__id__, @obj.reverse_complement.__id__)
assert_equal(str_rcomp, @obj.reverse_complement!)
assert_equal(str_rcomp, @obj)
end
def test_complement