This commit is contained in:
Nabil Chatbi 2017-03-17 21:47:57 +01:00
parent 15e6af408f
commit c2bfb21a48
1 changed files with 3 additions and 9 deletions

View File

@ -138,17 +138,11 @@ class EntitiesTest: XCTestCase {
func testPerformanceExample()throws {
// This is an example of a performance test case.
let string: String = "http://www.foo.com?a=1&num_rooms=1&children=0&int=VA&b=2"
self.measure {
do{
for _ in 0...10
{
_ = try Entities.unescape(string);
}
}catch Exception.Error( _, _){
}catch{
}
_ = Entities.EscapeMode.base
_ = Entities.EscapeMode.xhtml
_ = Entities.EscapeMode.extended
}
}