public void PersistTest() { Assert.AreEqual(3, Persist.Persistence(39)); Assert.AreEqual(0, Persist.Persistence(4)); Assert.AreEqual(2, Persist.Persistence(25)); Assert.AreEqual(4, Persist.Persistence(999)); }
public void Test1() { Console.WriteLine("****** Basic Tests"); Assert.AreEqual(3, Persist.Persistence(39)); Assert.AreEqual(0, Persist.Persistence(4)); Assert.AreEqual(2, Persist.Persistence(25)); Assert.AreEqual(4, Persist.Persistence(999)); }
static void Main(string[] args) { //Console.WriteLine(Kata.HighAndLow("1 2 3 4 5")); //Console.WriteLine(Kata.HighAndLow("1 9 -3 4 5")); //Console.WriteLine(Kata.FindShort("bitcoin take over thea world maybe whoa knows perhaps")); //Console.WriteLine(Kata.DescendingOrder(841267)); //Console.WriteLine(Kata.find_it(new[] { 20, 1, -1, 2, -2, -2, -2, 3, 3, 5, 5, 1, 2, 4, 20, 4, -1, -2, 5 })); //Console.WriteLine(Kata.find_it(new[] { 1})); Console.WriteLine(Persist.Persistence(999)); Console.ReadKey(); }
public void Test1() { Assert.AreEqual(3, Persist.Persistence(39)); }
public void Test4() { Assert.AreEqual(4, Persist.Persistence(999)); }
public void Test3() { Assert.AreEqual(2, Persist.Persistence(25)); }
public void Test2() { Assert.AreEqual(0, Persist.Persistence(4)); }