         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)
+
+            XCTAssert(numbered.count == 1, "Expected count of 1, got \(numbered.count)")
+            if numbered.count == 1 {
+                XCTAssert(numbered[0] == "")
+            }
+            XCTAssert(named.count == 0, "Expected count of 0, got \(named.count)")
         } catch {
             XCTFail("Could not compile regex pattern")
         }

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

        do {
            let re = try RegEx(pattern: "([0-9]+)[\\s]*:[\\s]*(.*)")
            let matches = re.match("")

            let numbered = matches.numberedParams
            let named = matches.namedParams

            XCTAssert(numbered.count == 0, "Expected count of 0, got \(numbered.count)")
            XCTAssert(named.count == 0, "Expected count of 0, got \(named.count)")
        } catch {
            XCTFail("Could not compile regex pattern")
        }
