Sha256: ba2eb67fc1c1f58da33f346f95565cdfd83f59d576c83fed6aed3aaf6f66c2c2
Contents?: true
Size: 538 Bytes
Versions: 78
Compression:
Stored size: 538 Bytes
Contents
exercise: Hamming version: 3 plan: 15 tests: |- for $c-data<cases>.values { if .<expected><error> { throws-like {hamming-distance(|.<input><strand1 strand2>)}, Exception, .<description>; } else { is hamming-distance(|.<input><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
78 entries across 78 versions & 1 rubygems