Exemplo n.º 1
0
 public void Day3_0()
 {
     Assert.AreEqual(0, Day_3.GetSpiralLocation(1));
     Assert.AreEqual(3, Day_3.GetSpiralLocation(12));
     Assert.AreEqual(2, Day_3.GetSpiralLocation(23));
     Assert.AreEqual(31, Day_3.GetSpiralLocation(1024));
 }
Exemplo n.º 2
0
 public void Day3_1()
 {
     Assert.AreEqual(133, Day_3.GetSpiralLocationPart2(122));
     //TODO There is a bug here involving corner numbers, got lucky the problem didnt hit this
 }