Commit 079a921
authored
test(renderer): give weldVertices' fixture Y and Z axes to weld on (#2909)
Both existing tests in snap-weld.test.ts vary only the X coordinate,
holding Y and Z at 0 for every point in the batch. weldVertices'
squared-distance comparison is dx*dx + dy*dy + dz*dz; with dy and dz
fixed at 0 across all fixture points, dropping either term from the
sum (or duplicating dx in its place) leaves every existing assertion
unaffected.
Mutation confirmed: replacing the sum with dx*dx + dz*dz (dy dropped)
or dx*dx + dy*dy (dz dropped) survived both pre-existing tests
unmodified.
Adds three tests that vary Y or Z independently of X, at a separation
(1.5*tol) chosen to stay inside the hash-grid's probe window so only
the final squared-distance check -- not the grid bucket lookup -- can
reject or accept the pair. Re-verified: both mutations above are now
caught (RED), and the suite is green against the unmodified source.1 parent 1d208fc commit 079a921
1 file changed
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
0 commit comments