feat(engine): select from mixed plate inventory

This commit is contained in:
aj
2026-09-18 02:09:06 -04:00
parent 67f5fb8eca
commit 75c8adc76c
5 changed files with 228 additions and 45 deletions
@@ -105,11 +105,12 @@ public class FiniteStockJobTests
}
[Fact]
public void MixedStockIsNotSilentlyIgnored()
public void MixedStockCanBeEvaluated()
{
var job = Job();
var mixed = new NestJob(job.Parts, job.Plates.Concat(new[] { new NestPlateStock("other", new Size(10, 20), 2) }));
Assert.Throws<NotSupportedException>(() => new NestJobRunner(_ => new Nester(One)).Solve(mixed));
var result = new NestJobRunner(_ => new Nester(One)).Solve(mixed);
Assert.Equal(NestJobStatus.Complete, result.Status);
}
[Theory]