@@ -15,9 +15,9 @@ func TestTranslator_Translate(t *testing.T) {
15
15
16
16
wantPrompt := heredoc .Docf (`
17
17
Translate the following document to English:
18
- ---
18
+ ---<DOC_BEGIN>---
19
19
%s
20
- ---
20
+ ---<DOC_END>---
21
21
22
22
Preserve the original document structure and formatting.
23
23
Preserve code blocks, placeholders, HTML tags and other structures.
@@ -35,9 +35,9 @@ func TestSource(t *testing.T) {
35
35
36
36
wantPrompt := heredoc .Docf (`
37
37
Translate the following document from French to English:
38
- ---
38
+ ---<DOC_BEGIN>---
39
39
%s
40
- ---
40
+ ---<DOC_END>---
41
41
42
42
Preserve the original document structure and formatting.
43
43
Preserve code blocks, placeholders, HTML tags and other structures.
@@ -55,9 +55,9 @@ func TestTarget(t *testing.T) {
55
55
56
56
wantPrompt := heredoc .Docf (`
57
57
Translate the following document to French:
58
- ---
58
+ ---<DOC_BEGIN>---
59
59
%s
60
- ---
60
+ ---<DOC_END>---
61
61
62
62
Preserve the original document structure and formatting.
63
63
Preserve code blocks, placeholders, HTML tags and other structures.
@@ -75,9 +75,9 @@ func TestPreserve(t *testing.T) {
75
75
76
76
wantPrompt := heredoc .Docf (`
77
77
Translate the following document to English:
78
- ---
78
+ ---<DOC_BEGIN>---
79
79
%s
80
- ---
80
+ ---<DOC_END>---
81
81
82
82
Preserve the original document structure and formatting.
83
83
Preserve code blocks, placeholders, HTML tags and other structures.
@@ -96,9 +96,9 @@ func TestPreserve_multiple(t *testing.T) {
96
96
97
97
wantPrompt := heredoc .Docf (`
98
98
Translate the following document to English:
99
- ---
99
+ ---<DOC_BEGIN>---
100
100
%s
101
- ---
101
+ ---<DOC_END>---
102
102
103
103
Preserve the original document structure and formatting.
104
104
Preserve code blocks, placeholders, HTML tags and other structures.
0 commit comments