Пример #1
0
 public void AOC_2015_Day08b()
 {
     var input = File.ReadAllText(".//Content2//Day08.txt");
     var answer = AOC_2015_Day08Answer.CalculateSecondAnswer(input);
     answer.Should().Be(2085);
 }
Пример #2
0
 public void encode_as_new_string(string input, string expectedOutput)
 {
     var answer = AOC_2015_Day08Answer.ReencodeString(input);
     answer.Should().Be(expectedOutput);
 }
Пример #3
0
 public void calculate_test_second_answer()
 {
     var input = @$"""""{Environment.NewLine}""abc""{Environment.NewLine}""aaa\""aaa""{Environment.NewLine}""\x27""";
     var answer = AOC_2015_Day08Answer.CalculateSecondAnswer(input);
     answer.Should().Be(19);
 }
Пример #4
0
 public void calculate_correct_string_lengths(string input, int expectedAnswer)
 {
     var actualAnswer = AOC_2015_Day08Answer.CalculateCharsInString(input);
     actualAnswer.Should().Be(expectedAnswer);
 }