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) } }
func Init(dna *Dna, strand string) { dna.strand = nucleotide.DnaStrandFromString(strand) }