Expand test coverage (#77)
* ignore line endings in cli tests * ignore line endings in integration tests * expand code coverage for `choc` footprint * expand code coverage for `chocmini` footprint * expand code coverage for `mx` footprint * expand code coverage for `pad` footprint * expand code coverage for rest of footprints * expand code coverage for `anchor.js` * expand code coverage for `units.js` * expand code coverage for `points.js` * expand code coverage for `filter.js` * expand code coverage for `outlines.js` * expand code coverage for `pcbs.js` * expand code coverage for `ergogen.js` * expand code coverage for `kle.js` * more code coverage for `outlines.js` * expand code coverage for `cases.js`
This commit is contained in:
@@ -17,8 +17,11 @@ const aggregator_common = ['parts', 'method']
|
||||
const aggregators = {
|
||||
average: (config, name, parts) => {
|
||||
a.unexpected(config, name, aggregator_common)
|
||||
let x = 0, y = 0, r = 0
|
||||
const len = parts.length
|
||||
if (len == 0) {
|
||||
return new Point()
|
||||
}
|
||||
let x = 0, y = 0, r = 0
|
||||
for (const part of parts) {
|
||||
x += part.x
|
||||
y += part.y
|
||||
|
||||
Reference in New Issue
Block a user