Esempio n. 1
0
    public void Part2(string input, ulong expected)
    {
        var day    = new Day23();
        var actual = day.Part2(input);

        Assert.Equal(expected, actual);
    }
Esempio n. 2
0
    public void Day23_Both_Parts(long part1, long part2)
    {
        var d = new Day23();

        Assert.Equal(part1.ToString(), d.Part1());
        Assert.Equal(part2.ToString(), d.Part2());
    }
Esempio n. 3
0
        public void SolvePart2Slow()
        {
            var d      = new Day23();
            var answer = d.Part2("389125467");

            Assert.AreEqual("149245887792", answer);
        }
        public void Day23Part2Test()
        {
            var day23 = new Day23();

            var actual   = day23.Part2(input, 10000000);
            var expected = 2029056128;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 5
0
        public void Part2_Sample()
        {
            long result = _day23.Part2("389125467");

            Assert.AreEqual(149245887792, result);
        }