Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
func testHangSquareBracket()
{
let input = "Text [-( Text"
let expectation = self.expectation(description: "Should not hang")
DispatchQueue.global().async {
let builder = BBCodeAttributedStringBuilder(bbcode: input)
let output = builder.attributedString
XCTAssertNotNil(output)
expectation.fulfill()
}
self.waitForExpectations(timeout: 1.0) { (error) in
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment