diff --git a/Sources/App/Controllers/OutputController.swift b/Sources/App/Controllers/OutputController.swift index 1748f76..57932e1 100644 --- a/Sources/App/Controllers/OutputController.swift +++ b/Sources/App/Controllers/OutputController.swift @@ -67,6 +67,6 @@ private extension String { return self } - return String(self[...range.lowerBound]) + return String(self[.." ) """ + + static let custom9 = """ + Unable to simultaneously satisfy constraints. + Probably at least one of the constraints in the following list is one you don't want. + Try this: + (1) look at each constraint and try to figure out which you don't expect; + (2) find the code that added the unwanted constraint or constraints and fix it. + ( + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ) + + Will attempt to recover by breaking constraint + + + Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. + The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful. + """ } diff --git a/Tests/AppTests/ViewTests.swift b/Tests/AppTests/ViewTests.swift index 4ef2751..1e76764 100644 --- a/Tests/AppTests/ViewTests.swift +++ b/Tests/AppTests/ViewTests.swift @@ -51,7 +51,8 @@ class ViewTests: XCTestCase { Input.custom5, Input.custom6, Input.custom7, - Input.custom8 + Input.custom8, + Input.custom9 ] for input in inputs { diff --git a/Tests/AppTests/__Snapshots__/ViewTests/testPostOutput.9.txt b/Tests/AppTests/__Snapshots__/ViewTests/testPostOutput.9.txt new file mode 100644 index 0000000..a45d8c9 --- /dev/null +++ b/Tests/AppTests/__Snapshots__/ViewTests/testPostOutput.9.txt @@ -0,0 +1,626 @@ +HTTP/1.1 200 OK +content-type: text/html; charset=utf-8 +content-length: 33906 + + + + + + + + + + + + WTF Auto Layout? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ Home + About +
+
+ +
+ + + +
+
+ + + + + +
+
+
+
+ + + + I + 1 + + +
+ ImageView1.width
+ UIImageView
+ 0x7f83b8171210 +
+
+
+ == +
+ + + +
+ 40 +
+ +
+
+
+ ImageView1's width should equal 40. +
+
+ +
+
+
+
+ + + + I + 2 + + +
+ ImageView2.width
+ UIImageView
+ 0x7f83b9a08580 +
+
+
+ == +
+ + + +
+ 60 +
+ +
+
+
+ ImageView2's width should equal 60. +
+
+ +
+
+
+
+ + + + I + 1 + + +
+ ImageView1.leading
+ UIImageView
+ 0x7f83b8171210 +
+
+
+ == +
+ +
+ + + + T + + + +
+ TableViewCellContentView.leading
+ UITableViewCellContentView
+ 0x7f83b8171010 +
+
+ + + +
+ + 15 +
+ +
+
+
+ ImageView1's leading edge should equal TableViewCellContentView's leading edge plus 15. +
+
+ +
+
+
+
+ + + + S + + + +
+ StackView.leading
+ UIStackView
+ 0x7f83b9a05c70 +
+
+
+ == +
+ +
+ + + + I + 1 + + +
+ ImageView1.trailing
+ UIImageView
+ 0x7f83b8171210 +
+
+ + + +
+ + 8 +
+ +
+
+
+ StackView's leading edge should equal ImageView1's trailing edge plus 8. +
+
+ +
+
+
+
+ + + + T + + + +
+ TableViewCellContentView.trailing
+ UITableViewCellContentView
+ 0x7f83b8171010 +
+
+
+ == +
+ +
+ + + + I + 2 + + +
+ ImageView2.trailing
+ UIImageView
+ 0x7f83b9a08580 +
+
+ + + +
+ + 5 +
+ +
+
+
+ TableViewCellContentView's trailing edge should equal ImageView2's trailing edge plus 5. +
+
+ +
+
+
+
+ + + + I + 2 + + +
+ ImageView2.leading
+ UIImageView
+ 0x7f83b9a08580 +
+
+
+ == +
+ +
+ + + + S + + + +
+ StackView.trailing
+ UIStackView
+ 0x7f83b9a05c70 +
+
+ + + +
+ + 8 +
+ +
+
+
+ ImageView2's leading edge should equal StackView's trailing edge plus 8. +
+
+ +
+
+
+
+ + + + S + + + +
+ Set lunch.leading
+ UILabel
+ 0x7f83b9a05e80 +
+
+
+ == +
+ +
+ + + + A + + + +
+ Added at 10:26.leading
+ UILabel
+ 0x7f83b9a06c70 +
+
+ + + +
+
+
+ Set lunch's leading edge should equal Added at 10:26's leading edge.‡ +
+
+ +
+
+
+
+ + + + S + + + +
+ Set lunch.trailing
+ UILabel
+ 0x7f83b9a05e80 +
+
+
+ == +
+ +
+ + + + A + + + +
+ Added at 10:26.trailing
+ UILabel
+ 0x7f83b9a06c70 +
+
+ + + +
+
+
+ Set lunch's trailing edge should equal Added at 10:26's trailing edge.‡ +
+
+ +
+
+
+
+ + + + S + + + +
+ StackView.leading
+ UIStackView
+ 0x7f83b9a05c70 +
+
+
+ == +
+ +
+ + + + S + + + +
+ Set lunch.leading
+ UILabel
+ 0x7f83b9a05e80 +
+
+ + + +
+
+
+ StackView's leading edge should equal Set lunch's leading edge.‡ +
+
+ +
+
+
+
+ + + + S + + + +
+ StackView.trailing
+ UIStackView
+ 0x7f83b9a05c70 +
+
+
+ == +
+ +
+ + + + S + + + +
+ Set lunch.trailing
+ UILabel
+ 0x7f83b9a05e80 +
+
+ + + +
+
+
+ StackView's trailing edge should equal Set lunch's trailing edge.‡ +
+
+ +
+
+
+
+ + + + T + + + +
+ TableViewCellContentView.width
+ UITableViewCellContentView
+ 0x7f83b8171010 +
+
+
+ == +
+ + + +
+ 94.3 +
+ +
+
+
+ TableViewCellContentView's width should equal 94.3.† +
+
+ + +

‡ This constraint was added by a stack view to enforce its spacing, distribution or alignment.

+ +

† This constraint was added by a table or collection view to enforce its cell size.

+ + +Permalink + + +
+
+ + + +
+ + + + + + +