From 9bf76b7973f80e8393962e73510528d2af90e02c Mon Sep 17 00:00:00 2001 From: Server Cimen <505984+servercimen@users.noreply.github.com> Date: Tue, 24 Nov 2026 14:41:14 -0800 Subject: [PATCH] Build the rich copy test with Xcode 26 In one test a constant named font was made from a call of the helper font(_:at:). Xcode 26.6 takes the name in that call to be the new constant, so the test target did not build in CI. The constant now has another name. Co-Authored-By: Claude Opus 5.5 --- Tests/TranscriptKitTests/RichCopyTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/TranscriptKitTests/RichCopyTests.swift b/Tests/TranscriptKitTests/RichCopyTests.swift index ecd0b8f..65728c4 100644 --- a/Tests/TranscriptKitTests/RichCopyTests.swift +++ b/Tests/TranscriptKitTests/RichCopyTests.swift @@ -195,7 +195,7 @@ private func offset(of string: String, in text: NSAttributedString) -> Int { #expect(plain.contains(.traitMonoSpace)) #expect(plain.isDisjoint(with: [.traitBold, .traitItalic])) for at in ["bold code", "italic code", "plain code"] { - let font = try #require(font(text, at: offset(of: at, in: text))) - #expect(!(CTFontCopyPostScriptName(font) as String).hasPrefix(".")) + let found = try #require(font(text, at: offset(of: at, in: text))) + #expect(!(CTFontCopyPostScriptName(found) as String).hasPrefix(".")) } }