Inline the one-line beltLike wrapper (t85)
Written by the local model (qwen3-coder-30b) in a sandboxed worktree via local-run; reviewed by Claude. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-5
@@ -102,14 +102,12 @@ check('equal-shape inlet ties use top to bottom then left to right',run(`(()=>{
|
||||
})()`));
|
||||
const fs=require('fs');
|
||||
run(fs.readFileSync('src/render/slope-belts.js','utf8'));
|
||||
const setup=fs.readFileSync('src/render/setup.js','utf8');
|
||||
run(setup.slice(setup.indexOf('function beltLike('),setup.indexOf('\n',setup.indexOf('function beltLike('))));
|
||||
check('filter frames open at an uphill low-end feed and compatible screws',run(`(()=>{
|
||||
blockP.fill(0);blockV.fill(0);const b=10*BW+10;
|
||||
blockP[b]=BP_FILTER;blockV[b]=255;blockP[b+1]=BP_BELT_UP;blockV[b+1]=1;
|
||||
if(!beltLike(b,1))return false;
|
||||
blockP[b+1]=BP_SCREW;blockV[b+1]=1;if(!beltLike(b,1))return false;
|
||||
blockV[b+1]=3;return !beltLike(b,1);
|
||||
if(endJoin(b%BW,(b/BW)|0,1)<0)return false;
|
||||
blockP[b+1]=BP_SCREW;blockV[b+1]=1;if(endJoin(b%BW,(b/BW)|0,1)<0)return false;
|
||||
blockV[b+1]=3;return endJoin(b%BW,(b/BW)|0,1)<0;
|
||||
})()`));
|
||||
check('planned flat caps and slope continuations use the shared ends',run(`(()=>{
|
||||
blockP.fill(0);blockV.fill(0);const b=10*BW+10;
|
||||
|
||||
Reference in New Issue
Block a user