func TestGetComplimentFromStrand(t *testing.T) {
	input, expected := nucleotide.DnaStrandFromString("AAAACCCGGT"), "TTTTGGGCCA"
	actual := nucleotide.StrandToString(
		nucleotide.GetComplimentFromStrand(input))

	if actual != expected {
		t.Errorf("Failed, actual: %v, expected: %v", actual, expected)
	}
}
Beispiel #2
0
func Init(dna *Dna, strand string) {
	dna.strand = nucleotide.DnaStrandFromString(strand)
}