feat: solved day 17 part 1
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user