 
             let numbered = matches.numberedParams
             let named = matches.namedParams
-            
-            XCTAssert(numbered.count == 3)
-            XCTAssert(numbered[1] == "1234")
-            XCTAssert(numbered[2] == "Hallo Welt")
 
-            XCTAssert(named.count == 0)
+            XCTAssert(numbered.count == 3, "Expected count of 3, got \(numbered.count)")
+            if numbered.count == 3 {
+                XCTAssert(numbered[1] == "1234")
+                XCTAssert(numbered[2] == "Hallo Welt")
+            }
+
+            XCTAssert(named.count == 0, "Expected count of 0, got \(named.count)")
         } catch {
             XCTFail("Could not compile regex pattern")
         }

        do {
            let re = try RegEx(pattern: "")
            let matches = re.match("1234 : Hallo Welt")
            
            let numbered = matches.numberedParams
            let named = matches.namedParams
            
            XCTAssert(numbered.count == 1)
            XCTAssert(numbered[0] == "")
            
            XCTAssert(named.count == 0)
        } catch {
            XCTFail("Could not compile regex pattern")
        }

            ("testMixedMatch", testMixedMatch)
        ]
    }

    func testCompileFailed() {
        do {
            let _ = try RegEx(pattern: "([0")
