docs: sync Task 8 test rewrite to hard-bound assertions
This commit is contained in:
parent
7614590b03
commit
31577787f1
1 changed files with 2 additions and 1 deletions
|
|
@ -972,7 +972,8 @@ and replace the `'beats a homography on barrel-distorted data'` test body's homo
|
|||
const test: Vec2[] = [[488, 244], [1464, 732], [1952, 488], [976, 976]];
|
||||
const polyMax = Math.max(...test.map((m) => dist(applyPolyWarp(w, m), trueMap(m))));
|
||||
const baseMax = Math.max(...test.map((m) => dist(applyPolyWarp(baseline, m), trueMap(m))));
|
||||
expect(polyMax).toBeLessThan(baseMax * 0.05);
|
||||
expect(baseMax).toBeGreaterThan(1e-3); // affine baseline genuinely fails on barrel data
|
||||
expect(polyMax).toBeLessThan(1e-6); // degree-3 fit of cubic data is near-exact everywhere
|
||||
});
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue