1
0

Extra test coverage for expand_shorthand (#80)

This commit is contained in:
Luke Kershaw 2023-01-23 13:46:57 +00:00 committed by GitHub
parent 86a74945ca
commit 75f907917b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 738 additions and 0 deletions

46
test/outlines/expand.yaml Normal file
View File

@ -0,0 +1,46 @@
points:
zones:
matrix: {}
outlines:
base:
- what: rectangle
where: true
size: 20
bound: false
sh_beveled:
- what: outline
name: base
expand: "5]"
sh_round:
- what: outline
name: base
expand: "6)"
sh_pointy:
- what: outline
name: base
expand: "7>"
shorthand-combo:
- "sh_pointy"
- "-sh_round"
- "+sh_beveled"
- "-base"
jnt_beveled:
- what: outline
name: base
expand: 8
joints: beveled
jnt_round:
- what: outline
name: base
expand: 9
joints: round
jnt_pointy:
- what: outline
name: base
expand: 10
joints: pointy
joint-name-combo:
- "jnt_pointy"
- "-jnt_round"
- "+jnt_beveled"
- "-base"

View File

@ -0,0 +1,346 @@
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
-20
20
-20
11
20
21
-20
0
LINE
8
0
10
20
20
-20
11
20
21
20
0
LINE
8
0
10
-20
20
20
11
20
21
20
0
LINE
8
0
10
-20
20
-20
11
-20
21
20
0
LINE
8
0
10
-10
20
-19
11
10
21
-19
0
ARC
8
0
10
10
20
-10
40
9
50
270
51
360
0
LINE
8
0
10
19
20
-10
11
19
21
10
0
ARC
8
0
10
10
20
10
40
9
50
0
51
90
0
LINE
8
0
10
10
20
19
11
-10
21
19
0
ARC
8
0
10
-10
20
10
40
9
50
90
51
180
0
LINE
8
0
10
-19
20
10
11
-19
21
-10
0
ARC
8
0
10
-10
20
-10
40
9
50
180
51
270
0
LINE
8
0
10
-13.3137085
20
-18
11
13.3137085
21
-18
0
LINE
8
0
10
13.3137085
20
-18
11
18
21
-13.3137085
0
LINE
8
0
10
18
20
-13.3137085
11
18
21
13.3137085
0
LINE
8
0
10
13.3137085
20
18
11
18
21
13.3137085
0
LINE
8
0
10
-13.3137085
20
18
11
13.3137085
21
18
0
LINE
8
0
10
-18
20
13.3137085
11
-13.3137085
21
18
0
LINE
8
0
10
-18
20
-13.3137085
11
-18
21
13.3137085
0
LINE
8
0
10
-18
20
-13.3137085
11
-13.3137085
21
-18
0
LINE
8
0
10
-10
20
-10
11
10
21
-10
0
LINE
8
0
10
10
20
-10
11
10
21
10
0
LINE
8
0
10
10
20
10
11
-10
21
10
0
LINE
8
0
10
-10
20
10
11
-10
21
-10
0
ENDSEC
0
EOF

View File

@ -0,0 +1,346 @@
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
-17
20
-17
11
17
21
-17
0
LINE
8
0
10
17
20
-17
11
17
21
17
0
LINE
8
0
10
-17
20
17
11
17
21
17
0
LINE
8
0
10
-17
20
-17
11
-17
21
17
0
LINE
8
0
10
-10
20
-16
11
10
21
-16
0
ARC
8
0
10
10
20
-10
40
6
50
270
51
360
0
LINE
8
0
10
16
20
-10
11
16
21
10
0
ARC
8
0
10
10
20
10
40
6
50
0
51
90
0
LINE
8
0
10
10
20
16
11
-10
21
16
0
ARC
8
0
10
-10
20
10
40
6
50
90
51
180
0
LINE
8
0
10
-16
20
10
11
-16
21
-10
0
ARC
8
0
10
-10
20
-10
40
6
50
180
51
270
0
LINE
8
0
10
-12.0710678
20
-15
11
12.0710678
21
-15
0
LINE
8
0
10
12.0710678
20
-15
11
15
21
-12.0710678
0
LINE
8
0
10
15
20
-12.0710678
11
15
21
12.0710678
0
LINE
8
0
10
12.0710678
20
15
11
15
21
12.0710678
0
LINE
8
0
10
-12.0710678
20
15
11
12.0710678
21
15
0
LINE
8
0
10
-15
20
12.0710678
11
-12.0710678
21
15
0
LINE
8
0
10
-15
20
-12.0710678
11
-15
21
12.0710678
0
LINE
8
0
10
-15
20
-12.0710678
11
-12.0710678
21
-15
0
LINE
8
0
10
-10
20
-10
11
10
21
-10
0
LINE
8
0
10
10
20
-10
11
10
21
10
0
LINE
8
0
10
10
20
10
11
-10
21
10
0
LINE
8
0
10
-10
20
10
11
-10
21
-10
0
ENDSEC
0
EOF