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
Prevent accessing unicode scalar element with incorrect index.
This change prevents a potential DocC crash by making sure that it does not access
an array element using an index that is outside of the bonds of the array.
`.index(after:` can crash in some cases if the passed index
belongs to the last element of the collection. with this change we ensure
that the passed index is not the last index.
rdar://150760264
letvalidatedWithHeading=tryXCTUnwrap(ValidatedURL(parsingAuthoredLink: linkText +"#Heading-Name"),"Failed to parse '\(linkText)#Heading-Name' as authored link")
99
-
XCTAssertNil(validatedWithHeading.components.queryItems,"Authored documentation links don't include query items")
letvalidatedWithHeading=tryXCTUnwrap(ValidatedURL(parsingAuthoredLink: linkText +"#Heading-Name"),"Failed to parse '\(linkText)#Heading-Name' as authored link")
119
-
XCTAssertNil(validatedWithHeading.components.queryItems,"Authored documentation links don't include query items")
0 commit comments