Skip to content

Commit e0eeb5e

Browse files
Adds failing test for NSLayoutAnchorConstraintSpace
1 parent 77d5839 commit e0eeb5e

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

Tests/AppTests/Inputs/Input+GitHubIssues.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,25 @@ extension Input {
5050
"<NSLayoutConstraint:0x174281400 _UILayoutSpacer:0x1743a0620.trailing >= UIImageView:0x123d8e1f0.trailing>"
5151
)
5252
"""
53+
54+
/// https://github.com/johnpatrickmorgan/wtfautolayout/issues/10
55+
static let issue10 = """
56+
(
57+
"<NSLayoutConstraint:0x60000346c9b0 UITextField:0x7fa67503ae00.height == 50 (active)>",
58+
"<NSLayoutConstraint:0x60000346d720 V:|-(0)-[UITextField:0x7fa67503ae00] (active, names: '|':UIView:0x7fa67350cab0 )>",
59+
"<NSLayoutConstraint:0x60000346d7c0 V:[UITextField:0x7fa67503ae00]-(0)-| (active, names: '|':UIView:0x7fa67350cab0 )>",
60+
"<NSLayoutConstraint:0x60000346dbd0 UITableViewCellContentView:0x7fa67350b050.bottomMargin == UIStackView:0x7fa67350c480.bottom (active)>",
61+
"<NSLayoutConstraint:0x60000346dc20 UIStackView:0x7fa67350c480.top == UITableViewCellContentView:0x7fa67350b050.topMargin (active)>",
62+
"<NSLayoutConstraint:0x600003459680 'UISV-alignment' UIImageView:0x7fa67350c880.centerY == UIView:0x7fa67350cab0.centerY (active)>",
63+
"<NSLayoutConstraint:0x60000345ac10 'UISV-canvas-connection' UIStackView:0x7fa67350c680.top == _UILayoutSpacer:0x60000284c1e0'UISV-alignment-spanner'.top (active)>",
64+
"<NSLayoutConstraint:0x60000345a440 'UISV-canvas-connection' UIStackView:0x7fa67350c680.centerY == UIImageView:0x7fa67350c880.centerY (active)>",
65+
"<NSLayoutConstraint:0x600003458320 'UISV-canvas-connection' UIStackView:0x7fa67350c480.top == UIStackView:0x7fa67350c680.top (active)>",
66+
"<NSLayoutConstraint:0x6000034757c0 'UISV-canvas-connection' V:[UIButton:0x7fa67350bf50'E-posta adresini mi unutt...']-(0)-| (active, names: '|':UIStackView:0x7fa67350c480 )>",
67+
"<_UISystemBaselineConstraint:0x6000033499e0 'UISV-spacing' V:[UIStackView:0x7fa67350c680]-(NSLayoutAnchorConstraintSpace(8))-[UIButton:0x7fa67350bf50'E-posta adresini mi unutt...'] (active)>",
68+
"<NSLayoutConstraint:0x6000034679d0 'UISV-spanning-boundary' _UILayoutSpacer:0x60000284c1e0'UISV-alignment-spanner'.top <= UIView:0x7fa67350cab0.top (active)>",
69+
"<NSLayoutConstraint:0x60000346ddb0 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x600002e401c0'UIViewLayoutMarginsGuide']-(8)-| (active, names: '|':UITableViewCellContentView:0x7fa67350b050 )>",
70+
"<NSLayoutConstraint:0x60000346d590 'UIView-Encapsulated-Layout-Height' UITableViewCellContentView:0x7fa67350b050.height == 66 (active)>",
71+
"<NSLayoutConstraint:0x60000346dd10 'UIView-topMargin-guide-constraint' V:|-(8)-[UILayoutGuide:0x600002e401c0'UIViewLayoutMarginsGuide'] (active, names: '|':UITableViewCellContentView:0x7fa67350b050 )>"
72+
)
73+
"""
5374
}

Tests/AppTests/ParserTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ class ParserTests: SnapshotTestCase {
3434
Input.issue1,
3535
Input.issue2,
3636
Input.issue4,
37-
Input.issue5
37+
Input.issue5,
38+
Input.issue10
3839
]
3940

4041
for input in inputs {

0 commit comments

Comments
 (0)