public void Test9() { long expected = 10; long actual = HammingNumbers.Hamming(9); Assert.Equal(expected, actual); }
public void Test11() { long expected = 15; long actual = HammingNumbers.Hamming(11); Assert.Equal(expected, actual); }
public void Test7() { long expected = 8; long actual = HammingNumbers.Hamming(7); Assert.Equal(expected, actual); }
public void Tes4() { long expected = 4; long actual = HammingNumbers.Hamming(4); Assert.Equal(expected, actual); }
public void Test18() { long expected = 30; long actual = HammingNumbers.Hamming(18); Assert.Equal(expected, actual); }
public void Test15() { long expected = 24; long actual = HammingNumbers.Hamming(15); Assert.Equal(expected, actual); }
public void HammingNumbers_Test(long expected, int n) { Assert.AreEqual(expected, HammingNumbers.Hamming(n), $"Hamming({n}) should be {expected}"); }