Created
December 12, 2016 09:28
-
-
Save odrobnik/152c128fe9b35460acce3bac1bf7fe96 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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