Skip to content

Commit

Permalink
Updated the unit tests for the new courtyard origin layer
Browse files Browse the repository at this point in the history
  • Loading branch information
callendorph committed Aug 6, 2024
1 parent a5f53d7 commit 637eec8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 5 additions & 1 deletion tests/landpatterns/BGA/package.stanza
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@ deftest(BGA) test-full-landpattern :

; Check for courtyard
val cy = layer(lp, Courtyard(Top))
#EXPECT(length(cy) == 2)
#EXPECT(length(cy) == 1)

; Check for Origin
val oy = layer(lp, CustomLayer("origin", Top))
#EXPECT(length(oy) == 1)

; Check for the silkscreen
val silk = layer(lp, Silkscreen("outline", Top))
Expand Down
7 changes: 6 additions & 1 deletion tests/landpatterns/SOIC.stanza
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,14 @@ deftest(SOIC) test-fine-pitch:
val shape = pad-shape(pd)
#EXPECT(shape is Rectangle)


; Check for courtyard
val cy = layer(W-lp, Courtyard(Top))
#EXPECT(length(cy) == 2)
#EXPECT(length(cy) == 1)

; Check for Origin
val oy = layer(W-lp, CustomLayer("origin", Top))
#EXPECT(length(oy) == 1)

; Check for the silkscreen
val silk = layer(W-lp, Silkscreen("outline", Top))
Expand Down
5 changes: 3 additions & 2 deletions tests/landpatterns/courtyard.stanza
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ deftest(courtyard) test-courtyard-origin :
val not-empty = to-hashset<LayerSpecifier>([
SolderMask(Top)
Paste(Top)
Courtyard(Top)
CustomLayer("origin", Top)
])

expect-empty-others(test-lp, not-empty)

val cy = layer(test-lp, Courtyard(Top))
; Check for Origin
val cy = layer(test-lp, CustomLayer("origin", Top))
#EXPECT(length(cy) == 1)

val outline = dims(cy[0])
Expand Down

0 comments on commit 637eec8

Please sign in to comment.