test
This commit is contained in:
parent
15e6af408f
commit
c2bfb21a48
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue