Skip to content

Commit 08dbc14

Browse files
authored
Fix swift-format lint failure in TranscriptTests (#207)
The test added in #156 didn't pass `swift format lint --strict`, which has failed the Lint step of every CI run on main and on every PR since 2026-07-02. Reformat the file so CI can go green again.
1 parent d822848 commit 08dbc14

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

Tests/AnyLanguageModelTests/TranscriptTests.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ struct TranscriptTests {
5858
@Test func sessionRestoresInstructionsFromTranscript() throws {
5959
let instructions = "First\n\nSecond trailing spaces "
6060
let transcript = Transcript(entries: [
61-
.instructions(.init(
62-
id: "instructions-id",
63-
segments: [.text(.init(content: instructions))],
64-
toolDefinitions: []
65-
)),
66-
.prompt(.init(segments: [.text(.init(content: "Hello"))]))
61+
.instructions(
62+
.init(
63+
id: "instructions-id",
64+
segments: [.text(.init(content: instructions))],
65+
toolDefinitions: []
66+
)
67+
),
68+
.prompt(.init(segments: [.text(.init(content: "Hello"))])),
6769
])
6870

6971
let session = LanguageModelSession(model: MockLanguageModel(), transcript: transcript)

0 commit comments

Comments
 (0)