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:
parent
3746900490
commit
e0eb43566f
35 changed files with 2842 additions and 37 deletions
15
test/points/mirrors.yaml
Normal file
15
test/points/mirrors.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
points:
|
||||
mirror:
|
||||
ref: matrix_right_top
|
||||
distance: U
|
||||
zones:
|
||||
matrix:
|
||||
columns:
|
||||
left:
|
||||
rows:
|
||||
bottom.asym: source
|
||||
top.asym: clone
|
||||
right:
|
||||
rows:
|
||||
bottom:
|
||||
top:
|
338
test/points/mirrors___demo_dxf.dxf
Normal file
338
test/points/mirrors___demo_dxf.dxf
Normal file
|
@ -0,0 +1,338 @@
|
|||
0
|
||||
SECTION
|
||||
2
|
||||
HEADER
|
||||
9
|
||||
$INSUNITS
|
||||
70
|
||||
4
|
||||
0
|
||||
ENDSEC
|
||||
0
|
||||
SECTION
|
||||
2
|
||||
TABLES
|
||||
0
|
||||
TABLE
|
||||
2
|
||||
LTYPE
|
||||
0
|
||||
LTYPE
|
||||
72
|
||||
65
|
||||
70
|
||||
64
|
||||
2
|
||||
CONTINUOUS
|
||||
3
|
||||
______
|
||||
73
|
||||
0
|
||||
40
|
||||
0
|
||||
0
|
||||
ENDTAB
|
||||
0
|
||||
TABLE
|
||||
2
|
||||
LAYER
|
||||
0
|
||||
ENDTAB
|
||||
0
|
||||
ENDSEC
|
||||
0
|
||||
SECTION
|
||||
2
|
||||
ENTITIES
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
-9
|
||||
20
|
||||
9
|
||||
11
|
||||
9
|
||||
21
|
||||
9
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
9
|
||||
20
|
||||
9
|
||||
11
|
||||
9
|
||||
21
|
||||
-9
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
9
|
||||
20
|
||||
-9
|
||||
11
|
||||
-9
|
||||
21
|
||||
-9
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
-9
|
||||
20
|
||||
-9
|
||||
11
|
||||
-9
|
||||
21
|
||||
9
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
10
|
||||
20
|
||||
9
|
||||
11
|
||||
28
|
||||
21
|
||||
9
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
28
|
||||
20
|
||||
9
|
||||
11
|
||||
28
|
||||
21
|
||||
-9
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
28
|
||||
20
|
||||
-9
|
||||
11
|
||||
10
|
||||
21
|
||||
-9
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
10
|
||||
20
|
||||
-9
|
||||
11
|
||||
10
|
||||
21
|
||||
9
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
10
|
||||
20
|
||||
28
|
||||
11
|
||||
28
|
||||
21
|
||||
28
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
28
|
||||
20
|
||||
28
|
||||
11
|
||||
28
|
||||
21
|
||||
10
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
28
|
||||
20
|
||||
10
|
||||
11
|
||||
10
|
||||
21
|
||||
10
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
10
|
||||
20
|
||||
10
|
||||
11
|
||||
10
|
||||
21
|
||||
28
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
48.05
|
||||
20
|
||||
28
|
||||
11
|
||||
66.05
|
||||
21
|
||||
28
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
66.05
|
||||
20
|
||||
28
|
||||
11
|
||||
66.05
|
||||
21
|
||||
10
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
66.05
|
||||
20
|
||||
10
|
||||
11
|
||||
48.05
|
||||
21
|
||||
10
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
48.05
|
||||
20
|
||||
10
|
||||
11
|
||||
48.05
|
||||
21
|
||||
28
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
29.05
|
||||
20
|
||||
9
|
||||
11
|
||||
47.05
|
||||
21
|
||||
9
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
47.05
|
||||
20
|
||||
9
|
||||
11
|
||||
47.05
|
||||
21
|
||||
-9
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
47.05
|
||||
20
|
||||
-9
|
||||
11
|
||||
29.05
|
||||
21
|
||||
-9
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
29.05
|
||||
20
|
||||
-9
|
||||
11
|
||||
29.05
|
||||
21
|
||||
9
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
29.05
|
||||
20
|
||||
28
|
||||
11
|
||||
47.05
|
||||
21
|
||||
28
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
47.05
|
||||
20
|
||||
28
|
||||
11
|
||||
47.05
|
||||
21
|
||||
10
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
47.05
|
||||
20
|
||||
10
|
||||
11
|
||||
29.05
|
||||
21
|
||||
10
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
29.05
|
||||
20
|
||||
10
|
||||
11
|
||||
29.05
|
||||
21
|
||||
28
|
||||
0
|
||||
ENDSEC
|
||||
0
|
||||
EOF
|
16
test/points/rotations.yaml
Normal file
16
test/points/rotations.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
points:
|
||||
rotate: 22.5
|
||||
zones:
|
||||
matrix:
|
||||
rotate: 22.5
|
||||
key:
|
||||
origin: [-u/2, -u/2]
|
||||
columns:
|
||||
left:
|
||||
right.key:
|
||||
rotate: -45
|
||||
padding: (1+sqrt(2))/2 * u
|
||||
spread: (1+sqrt(2))/2 * u
|
||||
rows:
|
||||
bottom:
|
||||
top:
|
242
test/points/rotations___demo_dxf.dxf
Normal file
242
test/points/rotations___demo_dxf.dxf
Normal file
|
@ -0,0 +1,242 @@
|
|||
0
|
||||
SECTION
|
||||
2
|
||||
HEADER
|
||||
9
|
||||
$INSUNITS
|
||||
70
|
||||
4
|
||||
0
|
||||
ENDSEC
|
||||
0
|
||||
SECTION
|
||||
2
|
||||
TABLES
|
||||
0
|
||||
TABLE
|
||||
2
|
||||
LTYPE
|
||||
0
|
||||
LTYPE
|
||||
72
|
||||
65
|
||||
70
|
||||
64
|
||||
2
|
||||
CONTINUOUS
|
||||
3
|
||||
______
|
||||
73
|
||||
0
|
||||
40
|
||||
0
|
||||
0
|
||||
ENDTAB
|
||||
0
|
||||
TABLE
|
||||
2
|
||||
LAYER
|
||||
0
|
||||
ENDTAB
|
||||
0
|
||||
ENDSEC
|
||||
0
|
||||
SECTION
|
||||
2
|
||||
ENTITIES
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
-12.7279221
|
||||
20
|
||||
0
|
||||
11
|
||||
0
|
||||
21
|
||||
12.7279221
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
0
|
||||
20
|
||||
12.7279221
|
||||
11
|
||||
12.7279221
|
||||
21
|
||||
0
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
12.7279221
|
||||
20
|
||||
0
|
||||
11
|
||||
0
|
||||
21
|
||||
-12.7279221
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
0
|
||||
20
|
||||
-12.7279221
|
||||
11
|
||||
-12.7279221
|
||||
21
|
||||
0
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
-26.1629509
|
||||
20
|
||||
13.4350288
|
||||
11
|
||||
-13.4350288
|
||||
21
|
||||
26.1629509
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
-13.4350288
|
||||
20
|
||||
26.1629509
|
||||
11
|
||||
-0.7071067
|
||||
21
|
||||
13.4350288
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
-0.7071067
|
||||
20
|
||||
13.4350288
|
||||
11
|
||||
-13.4350288
|
||||
21
|
||||
0.7071067
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
-13.4350288
|
||||
20
|
||||
0.7071067
|
||||
11
|
||||
-26.1629509
|
||||
21
|
||||
13.4350288
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
7.2175144
|
||||
20
|
||||
25.2175144
|
||||
11
|
||||
25.2175144
|
||||
21
|
||||
25.2175144
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
25.2175144
|
||||
20
|
||||
25.2175144
|
||||
11
|
||||
25.2175144
|
||||
21
|
||||
7.2175144
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
25.2175144
|
||||
20
|
||||
7.2175144
|
||||
11
|
||||
7.2175144
|
||||
21
|
||||
7.2175144
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
7.2175144
|
||||
20
|
||||
7.2175144
|
||||
11
|
||||
7.2175144
|
||||
21
|
||||
25.2175144
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
16.2175144
|
||||
20
|
||||
51.8804653
|
||||
11
|
||||
28.9454365
|
||||
21
|
||||
39.1525432
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
28.9454365
|
||||
20
|
||||
39.1525432
|
||||
11
|
||||
16.2175144
|
||||
21
|
||||
26.4246211
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
16.2175144
|
||||
20
|
||||
26.4246211
|
||||
11
|
||||
3.4895923
|
||||
21
|
||||
39.1525432
|
||||
0
|
||||
LINE
|
||||
8
|
||||
0
|
||||
10
|
||||
3.4895923
|
||||
20
|
||||
39.1525432
|
||||
11
|
||||
16.2175144
|
||||
21
|
||||
51.8804653
|
||||
0
|
||||
ENDSEC
|
||||
0
|
||||
EOF
|
Loading…
Add table
Add a link
Reference in a new issue