Sha256: 6a299b823bfd57f5f81882fc2b70dc1e5c03b69748396ef918a916f0ee860d12
Contents?: true
Size: 1.11 KB
Versions: 115
Compression:
Stored size: 1.11 KB
Contents
using NUnit.Framework; [TestFixture] public class HammingTest { [Test] public void No_difference_between_empty_strands() { Assert.That(Hamming.Compute("",""), Is.EqualTo(0)); } [Ignore("Remove to run test")] [Test] public void No_difference_between_identical_strands() { Assert.That(Hamming.Compute("GGACTGA","GGACTGA"), Is.EqualTo(0)); } [Ignore("Remove to run test")] [Test] public void Complete_hamming_distance_in_small_strand() { Assert.That(Hamming.Compute("ACT","GGA"), Is.EqualTo(3)); } [Ignore("Remove to run test")] [Test] public void Hamming_distance_is_off_by_one_strand() { Assert.That(Hamming.Compute("GGACGGATTCTG","AGGACGGATTCT"), Is.EqualTo(9)); } [Ignore("Remove to run test")] [Test] public void Smalling_hamming_distance_in_middle_somewhere() { Assert.That(Hamming.Compute("GGACG","GGTCG"), Is.EqualTo(1)); } [Ignore("Remove to run test")] [Test] public void Larger_distance() { Assert.That(Hamming.Compute("ACCAGGG","ACTATGG"), Is.EqualTo(2)); } }
Version data entries
115 entries across 115 versions & 1 rubygems