Sha256: 0472f1b95ac9f801c8cbfb6273c031723c5be46ad147b7022e9d1107ed147e78
Contents?: true
Size: 1.34 KB
Versions: 374
Compression:
Stored size: 1.34 KB
Contents
@Grab('org.spockframework:spock-core:1.0-groovy-2.4') import spock.lang.* class HammingSpec extends Specification { def 'computes zero distance for identical strands'() { expect: new Hamming().compute('A','A') == 0 } @Ignore def 'computes the distance for a single nucleotide strand'() { expect: new Hamming().compute('A','G') == 1 } @Ignore def 'computes the distance for a small strand'() { expect: new Hamming().compute('AG','CT') == 2 } @Ignore def 'computes a small Hamming distance'() { expect: new Hamming().compute('AT','CT') == 1 } @Ignore def 'computes a small Hamming distance in a longer strand'() { expect: new Hamming().compute('GGACG','GGTCG') == 1 } @Ignore def 'ignores additional nucleotides when the first strand is longer'() { expect: new Hamming().compute('AGAGACTTA','AAA') == 1 } @Ignore def 'ignores additional nucleotides when the second strand is longer'() { expect: new Hamming().compute('AGG','AAAACTGACCCACCCCAGG') == 2 } @Ignore def 'computes a large Hamming distance'() { expect: new Hamming().compute('GATACA','GCATAA') == 4 } @Ignore def 'computes a very long Hamming distance'() { expect: new Hamming().compute('GGACGGATTCTG','AGGACGGATTCT') == 9 } }
Version data entries
374 entries across 374 versions & 1 rubygems