From bc27b24f9e98f39f6dec963ad5cd49ae51e12dc5 Mon Sep 17 00:00:00 2001 From: Ivan Sapozhnik Date: Tue, 17 Feb 2026 20:38:16 +0100 Subject: [PATCH 1/2] test: intentionally fail core test to verify branch protection --- Tests/TextDiffTests/TextDiffEngineTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/TextDiffTests/TextDiffEngineTests.swift b/Tests/TextDiffTests/TextDiffEngineTests.swift index e545daa..56f4182 100644 --- a/Tests/TextDiffTests/TextDiffEngineTests.swift +++ b/Tests/TextDiffTests/TextDiffEngineTests.swift @@ -165,7 +165,7 @@ func characterModeIsDeterministicForRepeatedCharacterTieCases() { @Test func defaultStyleInterChipSpacingMatchesCurrentDefault() { - #expect(TextDiffStyle.default.interChipSpacing == 0) + #expect(TextDiffStyle.default.interChipSpacing == 999) } @Test From 469d046375a4c4fbab7822682684c02f8daf6b4d Mon Sep 17 00:00:00 2001 From: Ivan Sapozhnik Date: Tue, 17 Feb 2026 20:42:22 +0100 Subject: [PATCH 2/2] test: make core pass and snapshots intentionally fail --- Tests/TextDiffTests/SnapshotTestSupport.swift | 6 +++++- Tests/TextDiffTests/TextDiffEngineTests.swift | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Tests/TextDiffTests/SnapshotTestSupport.swift b/Tests/TextDiffTests/SnapshotTestSupport.swift index c8be695..f8ceb94 100644 --- a/Tests/TextDiffTests/SnapshotTestSupport.swift +++ b/Tests/TextDiffTests/SnapshotTestSupport.swift @@ -27,7 +27,11 @@ func assertTextDiffSnapshot( mode: mode ) .frame(width: size.width, height: size.height, alignment: .topLeading) - .background(Color.white) + .background(Color(red: 1, green: 1, blue: 0.95)) + .overlay( + Rectangle() + .stroke(Color.blue, lineWidth: 1) + ) let hostingView = NSHostingView(rootView: rootView) hostingView.frame = CGRect(origin: .zero, size: size) diff --git a/Tests/TextDiffTests/TextDiffEngineTests.swift b/Tests/TextDiffTests/TextDiffEngineTests.swift index 56f4182..e545daa 100644 --- a/Tests/TextDiffTests/TextDiffEngineTests.swift +++ b/Tests/TextDiffTests/TextDiffEngineTests.swift @@ -165,7 +165,7 @@ func characterModeIsDeterministicForRepeatedCharacterTieCases() { @Test func defaultStyleInterChipSpacingMatchesCurrentDefault() { - #expect(TextDiffStyle.default.interChipSpacing == 999) + #expect(TextDiffStyle.default.interChipSpacing == 0) } @Test