feat: solved day 17 part 1

This commit is contained in:
Stevan Freeborn
2024-12-19 00:27:56 -06:00
parent 5a82d166d3
commit a2bad7524c
2 changed files with 165 additions and 3 deletions
@@ -0,0 +1,14 @@
namespace ChronospatialComputer.Tests;
public class ComputerTests
{
private readonly string _exampleInput = $"Register A: 729{Environment.NewLine}Register B: 0{Environment.NewLine}Register C: 0{Environment.NewLine}{Environment.NewLine}Program: 0,1,5,4,3,0";
[Test]
public async Task RunProgram_WhenCalledWithExampleInput_ItShouldReturnExpectedValue()
{
var result = Computer.From(_exampleInput).RunProgram();
await Assert.That(result).IsEqualTo("4,6,3,5,6,3,5,2,1,0");
}
}