初始化
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestDramaParsePrompt(t *testing.T) {
|
||||
prompt := dramaParsePrompt()
|
||||
for _, expected := range []string{"【剧本解析规则】", "【角色、场景、道具解析规则】", "【分镜正文固定格式】", "【第一帧】", "【画面内容】", "角色站位", "声音/台词", "台词必须写入实际发生的镜头段落", "【平台固定输出协议", `"entities"`, `"characters"`, `"scenes"`, `"props"`, `"storyboards"`} {
|
||||
if !strings.Contains(prompt, expected) {
|
||||
t.Fatalf("fixed prompt missing %q", expected)
|
||||
}
|
||||
}
|
||||
if strings.Contains(prompt, "用户自定义补充规则") {
|
||||
t.Fatal("fixed prompt must not contain user custom rules")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user