diff --git a/Sources/SnapshotTesting/Snapshotting/NSImage.swift b/Sources/SnapshotTesting/Snapshotting/NSImage.swift index cc8716f8f..23fe52672 100644 --- a/Sources/SnapshotTesting/Snapshotting/NSImage.swift +++ b/Sources/SnapshotTesting/Snapshotting/NSImage.swift @@ -18,8 +18,8 @@ extension Diffing where Value == NSImage { guard !compare(old, new, precision: precision) else { return nil } let difference = SnapshotTesting.diff(old, new) let message = new.size == old.size - ? "Expected snapshot to match reference" - : "Expected snapshot@\(new.size) to match reference@\(old.size)" + ? "Newly-taken snapshot does not match reference" + : "Newly-taken snapshot@\(new.size) does not match match reference@\(old.size)" return ( message, [XCTAttachment(image: old), XCTAttachment(image: new), XCTAttachment(image: difference)] diff --git a/Sources/SnapshotTesting/Snapshotting/UIImage.swift b/Sources/SnapshotTesting/Snapshotting/UIImage.swift index 944111d4f..cc9406135 100644 --- a/Sources/SnapshotTesting/Snapshotting/UIImage.swift +++ b/Sources/SnapshotTesting/Snapshotting/UIImage.swift @@ -18,8 +18,8 @@ extension Diffing where Value == UIImage { guard !compare(old, new, precision: precision) else { return nil } let difference = SnapshotTesting.diff(old, new) let message = new.size == old.size - ? "Expected snapshot to match reference" - : "Expected snapshot@\(new.size) to match reference@\(old.size)" + ? "Newly-taken snapshot does not match reference" + : "Newly-taken snapshot@\(new.size) does not match match reference@\(old.size)" let oldAttachment = XCTAttachment(image: old) oldAttachment.name = "reference" let newAttachment = XCTAttachment(image: new)