Add Arabic lyrics review
This commit is contained in:
@@ -369,6 +369,36 @@ final class SongProjectModelTests: XCTestCase {
|
||||
XCTAssertEqual(project.languageIDs, ["english"])
|
||||
}
|
||||
|
||||
func testApplyingReviewedArabicLyricsUpdatesMatchingSunoLyrics() {
|
||||
var project = SongProject(
|
||||
id: "project-arabic-review",
|
||||
title: "Arabic Review",
|
||||
idea: "Review pronunciation",
|
||||
lyrics: Lyrics(text: "Original lyrics"),
|
||||
sunoOutput: SunoOutput(lyricsText: "Original lyrics", stylePrompt: "Arabic pop")
|
||||
)
|
||||
|
||||
project.applyReviewedArabicLyrics("Reviewed lyrics")
|
||||
|
||||
XCTAssertEqual(project.lyrics.text, "Reviewed lyrics")
|
||||
XCTAssertEqual(project.sunoOutput?.lyricsText, "Reviewed lyrics")
|
||||
}
|
||||
|
||||
func testApplyingReviewedArabicLyricsPreservesEditedSunoLyrics() {
|
||||
var project = SongProject(
|
||||
id: "project-arabic-review-manual-output",
|
||||
title: "Arabic Review",
|
||||
idea: "Review pronunciation",
|
||||
lyrics: Lyrics(text: "Original lyrics"),
|
||||
sunoOutput: SunoOutput(lyricsText: "Manually edited output", stylePrompt: "Arabic pop")
|
||||
)
|
||||
|
||||
project.applyReviewedArabicLyrics("Reviewed lyrics")
|
||||
|
||||
XCTAssertEqual(project.lyrics.text, "Reviewed lyrics")
|
||||
XCTAssertEqual(project.sunoOutput?.lyricsText, "Manually edited output")
|
||||
}
|
||||
|
||||
func testMusicalParametersSupportManualAndAutoModes() {
|
||||
var project = SongProject(
|
||||
id: "project-8",
|
||||
|
||||
Reference in New Issue
Block a user