You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix a bug where the diagnostics file dropped all conversion problems (#707)
* Fix a bug where the diagnostics file dropped all conversion problems
rdar://115521475
* Fix a related issue where diagnostics are repeated in the console
rdar://115521475
* Apply suggestions from code review
Co-authored-by: Sofía Rodríguez <[email protected]>
* Add deprecation annotation to deprecated protocol requirement
* Update tests to use NSString API instead of new String API that's only available on newer platforms
---------
Co-authored-by: Sofía Rodríguez <[email protected]>
"No TechnologyRoot to organize article-only documentation.",
3103
+
"No symbol matched 'ModuleThatDoesNotExist'. Can't resolve 'ModuleThatDoesNotExist'."
3104
+
])
3105
+
3106
+
letlogLines= logStorage.text.splitByNewlines
3107
+
XCTAssertEqual(logLines.filter{($0 asNSString).contains("warning:")}.count,2,"There should be two warnings printed to the console")
3108
+
XCTAssertEqual(logLines.filter{($0 asNSString).contains("No TechnologyRoot to organize article-only documentation.")}.count,1,"The root page warning shouldn't be repeated.")
3109
+
XCTAssertEqual(logLines.filter{($0 asNSString).contains("No symbol matched 'ModuleThatDoesNotExist'. Can't resolve 'ModuleThatDoesNotExist'.")}.count,1,"The link warning shouldn't be repeated.")
0 commit comments