Skip to content

Commit 38996ca

Browse files
committed
refactor(dragoman_test.go): standardize document markers in test prompts for clarity
1 parent eeef9d1 commit 38996ca

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

dragoman_test.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ func TestTranslator_Translate(t *testing.T) {
1515

1616
wantPrompt := heredoc.Docf(`
1717
Translate the following document to English:
18-
---
18+
---<DOC_BEGIN>---
1919
%s
20-
---
20+
---<DOC_END>---
2121
2222
Preserve the original document structure and formatting.
2323
Preserve code blocks, placeholders, HTML tags and other structures.
@@ -35,9 +35,9 @@ func TestSource(t *testing.T) {
3535

3636
wantPrompt := heredoc.Docf(`
3737
Translate the following document from French to English:
38-
---
38+
---<DOC_BEGIN>---
3939
%s
40-
---
40+
---<DOC_END>---
4141
4242
Preserve the original document structure and formatting.
4343
Preserve code blocks, placeholders, HTML tags and other structures.
@@ -55,9 +55,9 @@ func TestTarget(t *testing.T) {
5555

5656
wantPrompt := heredoc.Docf(`
5757
Translate the following document to French:
58-
---
58+
---<DOC_BEGIN>---
5959
%s
60-
---
60+
---<DOC_END>---
6161
6262
Preserve the original document structure and formatting.
6363
Preserve code blocks, placeholders, HTML tags and other structures.
@@ -75,9 +75,9 @@ func TestPreserve(t *testing.T) {
7575

7676
wantPrompt := heredoc.Docf(`
7777
Translate the following document to English:
78-
---
78+
---<DOC_BEGIN>---
7979
%s
80-
---
80+
---<DOC_END>---
8181
8282
Preserve the original document structure and formatting.
8383
Preserve code blocks, placeholders, HTML tags and other structures.
@@ -96,9 +96,9 @@ func TestPreserve_multiple(t *testing.T) {
9696

9797
wantPrompt := heredoc.Docf(`
9898
Translate the following document to English:
99-
---
99+
---<DOC_BEGIN>---
100100
%s
101-
---
101+
---<DOC_END>---
102102
103103
Preserve the original document structure and formatting.
104104
Preserve code blocks, placeholders, HTML tags and other structures.

0 commit comments

Comments
 (0)