mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-03 12:21:39 -05:00
test(cutting): post the tutorial nest with a clean CL review
With the CL post declaring placed order for nests it writes as planned, the help tutorial's nest must reach posting with no findings at all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5da1e35e88
commit
a2966b9f86
1 file changed
+7
@@ -5,6 +5,7 @@ using OpenNest.Diagnostics;
|
||||
using OpenNest.Engine.CuttingPlanning;
|
||||
using OpenNest.Geometry;
|
||||
using OpenNest.IO;
|
||||
using OpenNest.Posts.Cincinnati;
|
||||
|
||||
namespace OpenNest.Tests.CuttingPlanning;
|
||||
|
||||
@@ -56,5 +57,11 @@ public class TutorialNestPlanningTests
|
||||
var findings = PostVerificationAnalyzer.Analyze(nest, Vector.Zero).Findings;
|
||||
Assert.DoesNotContain(findings, f => f.Kind is PostVerificationKind.PartSupport
|
||||
or PostVerificationKind.RapidCrossing or PostVerificationKind.MissingLeadIn);
|
||||
|
||||
// The tutorial posts with the Cincinnati CL post, which writes a planned nest in the order
|
||||
// checked, so the review before posting is complete and finds nothing.
|
||||
var post = new CincinnatiPostProcessor(new CincinnatiPostConfig { RequireLibraries = false });
|
||||
var report = PostVerificationAnalyzer.AnalyzeForPost(nest, post);
|
||||
Assert.True(report.Findings.Count == 0, string.Join("\n", report.Findings.Select(f => f.Message)));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user