my advent of code solutions
at main 52 lines 3.0 kB view raw
1using Solutions._2015; 2// ReSharper disable MemberCanBeMadeStatic.Global 3 4namespace Tests; 5 6public class Test2015 7{ 8 [Test] 9 [Arguments(typeof(Day01NotQuiteLisp), "232", "1783")] 10 [Arguments(typeof(Day02IWasToldThereWouldBeNoMath), "1586300", "3737498")] 11 [Arguments(typeof(Day03PerfectlySphericalHousesInAVacuum), "2081", "2341")] 12 [Arguments(typeof(Day04TheIdealStockingStuffer), "346386", "9958218")] 13 [Arguments(typeof(Day05DoesntHeHaveInternElvesForThis), "258", "53")] 14 [Arguments(typeof(Day06ProbablyAFireHazard), "543903", "14687245")] // TODO: optimize 15 [Arguments(typeof(Day07SomeAssemblyRequired), "3176", "14710")] 16 [Arguments(typeof(Day08Matchsticks), "1342", "2074")] 17 [Arguments(typeof(Day09AllInASingleNight), "117", "909")] 18 [Arguments(typeof(Day10ElvesLookElvesSay), "492982", "6989950")] 19 [Arguments(typeof(Day11CorporatePolicy), "hepxxyzz", "heqaabcc")] 20 [Arguments(typeof(Day12JsAbacusFrameworkio), "111754", "65402")] 21 [Arguments(typeof(Day13KnightsOfTheDinnerTable), "733", "725")] 22 [Arguments(typeof(Day14ReindeerOlympics), "2655", "1059")] 23 [Arguments(typeof(Day15ScienceForHungryPeople), "222870", "117936")] 24 [Arguments(typeof(Day16AuntSue), "103", "405")] 25 [Arguments(typeof(Day17NoSuchThingAsTooMuch), "1304", "18")] 26 [Arguments(typeof(Day18LikeAGifForYourYard), "1061", "1006")] 27 [Arguments(typeof(Day19MedicineForRudolph), "576", "207")] 28 [Arguments(typeof(Day20InfiniteElvesAndInfiniteHouses), "665280", "705600")] 29 [Arguments(typeof(Day21RpgSimulator20Xx), "78", "148")] 30 [Arguments(typeof(Day22WizardSimulator20Xx), "", "")] 31 [Arguments(typeof(Day23OpeningTheTuringLock), "255", "334")] 32 [Arguments(typeof(Day25LetItSnow), "9132360", "")] 33 public async Task CheckAllDays(Type dayType, string part1, string part2) => 34 await Common.CheckDay(dayType, part1, part2); 35 36 [Test] 37 [Arguments(typeof(Day01NotQuiteLisp), "-1", "5")] 38 [Arguments(typeof(Day02IWasToldThereWouldBeNoMath), "58", "34")] 39 [Arguments(typeof(Day03PerfectlySphericalHousesInAVacuum), "2", "11")] 40 // [Arguments(typeof(Day04TheIdealStockingStuffer), "609043", "6742839")] 41 [Arguments(typeof(Day05DoesntHeHaveInternElvesForThis), "1", "1")] 42 [Arguments(typeof(Day06ProbablyAFireHazard), "1000000", "1000000")] 43 // [Arguments(typeof(Day07SomeAssemblyRequired), "", "")] // test input doesn't have "a" wire 44 [Arguments(typeof(Day08Matchsticks), "12", "19")] 45 [Arguments(typeof(Day09AllInASingleNight), "605", "982")] 46 [Arguments(typeof(Day10ElvesLookElvesSay), "237746", "3369156")] 47 [Arguments(typeof(Day13KnightsOfTheDinnerTable), "330", "286")] 48 [Arguments(typeof(Day15ScienceForHungryPeople), "62842880", "57600000")] 49 [Arguments(typeof(Day19MedicineForRudolph), "4", "2")] 50 public async Task CheckTestInputs(Type dayType, string part1, string part2) => 51 await Common.CheckDay(dayType, part1, part2, testInput: true); 52}