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
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