Skip to content

Commit

Permalink
Adds a failing test for NSSpace after an equation constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpatrickmorgan committed Dec 24, 2018
1 parent c2c3b93 commit 39dbcb9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Tests/AppTests/Inputs/Input+GitHubIssues.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,12 @@ extension Input {
"<NSLayoutConstraint:0x60000346dd10 'UIView-topMargin-guide-constraint' V:|-(8)-[UILayoutGuide:0x600002e401c0'UIViewLayoutMarginsGuide'] (active, names: '|':UITableViewCellContentView:0x7fa67350b050 )>"
)
"""

static let issue13 = """
"<NSAutoresizingMaskLayoutConstraint:0x283c8f570 h=-&- v=&-- UIView:0x10f754f20.height == 86 (active)>",
"<NSLayoutConstraint:0x283c8c820 V:|-(0)-[UIButton:0x10f755100'Cancel'] (active, names: '|':UIView:0x10f754f20 )>",
"<NSLayoutConstraint:0x283c8c870 UIButton:0x10f755100'Cancel'.height == 52 (active)>",
"<NSLayoutConstraint:0x283c8c8c0 UILayoutGuide:0x2826f9880'UIViewLayoutMarginsGuide'.bottom == UIButton:0x10f755100'Cancel'.bottom NSSpace(0) (active)>",
"<NSLayoutConstraint:0x283c8c730 'UIView-bottomMargin-guide-constraint' V:[UILayoutGuide:0x2826f9880'UIViewLayoutMarginsGuide']-(42)-| (active, names: '|':UIView:0x10f754f20 )>"
"""
}
3 changes: 2 additions & 1 deletion Tests/AppTests/ParserTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class ParserTests: SnapshotTestCase {
Input.issue2,
Input.issue4,
Input.issue5,
Input.issue10
Input.issue10,
Input.issue13
]

for input in inputs {
Expand Down

0 comments on commit 39dbcb9

Please sign in to comment.