Sha256: ea9ef4633494eebbcd9263c79d9c36a676c7f0c5fc7b0ad501f06442c759fd74
Contents?: true
Size: 553 Bytes
Versions: 30
Compression:
Stored size: 553 Bytes
Contents
exercise: Hamming version: 2 plan: 17 imports: '&hamming-distance' tests: |- for $c-data<cases>.values { if .<expected><error> { throws-like {hamming-distance(|.<strand1 strand2>)}, Exception, .<description>; } else { is hamming-distance(|.<strand1 strand2>), |.<expected description>; } } unit: module example: |- sub hamming-distance ( +@strands where { .elems == 2 && [==] $_».chars } --> Int:D ) is export { sum [Zne] @strands».comb } stub: |- sub hamming-distance ($strand1, $strand2) is export { }
Version data entries
30 entries across 30 versions & 1 rubygems