Sha256: 5c9ed8a40ed8486d792f7ba0049ef287b88782b1bf51f9ec4d248990b6f44f4a
Contents?: true
Size: 627 Bytes
Versions: 388
Compression:
Stored size: 627 Bytes
Contents
import unittest import hamming test "no difference between identical strands": check distance("A", "A") == 0 test "complate Hamming distance for single nucleotide strand": check distance("A", "G") == 1 test "complete Hamming distance for small strand": check distance("AG", "CT") == 2 test "small Hamming distance": check distance("AT", "CT") == 1 test "small Hamming distance in longer strand": check distance("GGACG", "GGTCG") == 1 test "large Hamming distance": check distance("GATACA", "GCATAA") == 4 test "Hamming distance in a very large strand": check distance("GGACGGATTCTG", "AGGACGGATTCT") == 9
Version data entries
388 entries across 388 versions & 1 rubygems