     
     var tmRegex: Regex!
     var zeldaRegex: Regex!
+    var namedRegex: Regex!
     var s: String = "😊😾LL™abc 1™ <😍 ゼルダ™の伝説 Zelda™ is so awesome!>\nll™< 塞尔达™最高 3>😃zelda\r\n Link™"
     
     override func setUp() {

        
        tmRegex = Regex("((\\S)(\\S*)(\\S))™")
        zeldaRegex = Regex("(zelda|link)(™)?", options: [.caseInsensitive])
    }
    
    override func tearDown() {

        XCTAssertNotNil(try? Regex(pattern: "()"))
    }
    
    func testPattern() {
    
        XCTAssertEqual(namedRegex.pattern, "(?<name>zelda|link)(?<brand>™)?")
        
        XCTAssertThrowsError(try zeldaRegex.setPattern(""))
        
        XCTAssertNoThrow(try zeldaRegex.setPattern("\\d+"))
        
        XCTAssertEqual(namedRegex.options, [.namedCaptureGroups, .caseInsensitive])
        
    }
    
    func testRegexPerformance() {
        let content: String = try! String(contentsOf: Bundle(for: LLRegexTests.self).url(forResource: "LargeContent", withExtension: "txt")!)
        
