Skip to content

Instantly share code, notes, and snippets.

View adam-fowler's full-sized avatar

Adam Fowler adam-fowler

View GitHub Profile
@adam-fowler
adam-fowler / XCTAssert(Not)Equal
Last active June 20, 2025 10:48 — forked from ptoffy/XCTAssert(Not)Nil
Swift Testing Migration Utilities
replace: (try\s+)?XCTAssertEqual\((.*),\s*([^,]+)\)
with: #expect($2 == $3)
replace: (try\s+)?XCTAssertNotEqual\((.*),\s*([^,]+)\)
with: #expect($2 != $3)