ben
/
aoc
1
0
Fork 0

use c# 11 string literals!

This commit is contained in:
Ben Harris 2022-11-11 12:45:21 -05:00
parent eaa0337192
commit 9ce279c079
2 changed files with 17 additions and 17 deletions

View File

@ -5,22 +5,22 @@ namespace AOC.Test;
[TestClass]
public class Test2021
{
private const string Day13Actual = @"
";
private const string Day13Actual = """
""";
private const string Day13Test = @"
";
private const string Day13Test = """
""";
[DataTestMethod]
[DataRow(typeof(Day01), "1616", "1645")]

View File

@ -56,7 +56,7 @@ public sealed class Day13 : Day
for (var x = 0; x <= xMax; x++)
s.Append(_dots.Contains((x, y)) ? "█" : "▒");
s.AppendLine();
if (y < yMax) s.AppendLine();
}
return s.ToString();
@ -70,6 +70,6 @@ public sealed class Day13 : Day
foreach (var (axis, at) in _folds)
_dots = DoFold(_dots, axis, at);
return Environment.NewLine + PrintGrid();
return PrintGrid();
}
}