示例#1
0
 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));
 }
示例#2
0
 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));
 }
示例#3
0
        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();
        }
示例#4
0
 public void Test1()
 {
     Assert.AreEqual(3, Persist.Persistence(39));
 }
示例#5
0
 public void Test4()
 {
     Assert.AreEqual(4, Persist.Persistence(999));
 }
示例#6
0
 public void Test3()
 {
     Assert.AreEqual(2, Persist.Persistence(25));
 }
示例#7
0
 public void Test2()
 {
     Assert.AreEqual(0, Persist.Persistence(4));
 }