Add section performance directives
This commit is contained in:
@@ -62,4 +62,35 @@ final class SongProjectPromptCompilerTests: XCTestCase {
|
||||
|
||||
XCTAssertEqual(output.lyricsText, "[Verse]\nVerse line\n\n[Chorus]\nHook line")
|
||||
}
|
||||
|
||||
func testCompilerIncludesSectionPerformanceDirectivesInFallbackLyrics() throws {
|
||||
let project = SongProject(
|
||||
title: "Directed Sections",
|
||||
idea: "Compile performance directions",
|
||||
sections: [
|
||||
SongSection(
|
||||
id: "intro",
|
||||
type: .intro,
|
||||
title: "Intro",
|
||||
lyrics: "First line",
|
||||
vocalDirection: "whispered lead"
|
||||
),
|
||||
SongSection(
|
||||
id: "chorus",
|
||||
type: .chorus,
|
||||
title: "Chorus",
|
||||
order: 1,
|
||||
lyrics: "Original hook"
|
||||
)
|
||||
],
|
||||
lyrics: Lyrics(sectionTexts: ["chorus": "Approved hook"])
|
||||
)
|
||||
|
||||
let output = try SongProjectPromptCompiler().compile(project: project)
|
||||
|
||||
XCTAssertEqual(
|
||||
output.lyricsText,
|
||||
"[Intro - whispered lead]\nFirst line\n\n[Chorus]\nApproved hook"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user