Skip to content

Commit d04cf13

Browse files
committed
gofmt test files
1 parent 10e0a39 commit d04cf13

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

internal/handler/sanitize_title_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ func TestSanitizeTitle(t *testing.T) {
77
{"Attention Is All You Need", "Attention Is All You Need"},
88
{" spaced out title ", "spaced out title"},
99
{"Berkshire — 2023", "Berkshire — 2023"}, // valid UTF-8 em-dash is kept
10-
{"bad\xff\xfebyte", "badbyte"}, // invalid UTF-8 bytes dropped
11-
{"line\nbreak\ttab", "line break tab"}, // control chars → space, collapsed
12-
{"\xff\xfe", ""}, // all-garbage collapses to empty
10+
{"bad\xff\xfebyte", "badbyte"}, // invalid UTF-8 bytes dropped
11+
{"line\nbreak\ttab", "line break tab"}, // control chars → space, collapsed
12+
{"\xff\xfe", ""}, // all-garbage collapses to empty
1313
{"", ""},
1414
}
1515
for _, c := range cases {

pkg/parser/repeated_marker_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import "testing"
77
// real prose or short headings.
88
func TestIsRepeatedMarkerLine(t *testing.T) {
99
drop := []string{
10-
"id id id id", // 4/4 = 100%
11-
"iD iD iD iD", // case-insensitive caller lower-cases first; test raw too
12-
"id id id", // 3/3
10+
"id id id id", // 4/4 = 100%
11+
"iD iD iD iD", // case-insensitive caller lower-cases first; test raw too
12+
"id id id", // 3/3
1313
"id id id id author", // 4/5 = 80% ≥ 60%
1414
}
1515
keep := []string{
1616
"the right to erasure is established in article 17",
17-
"multi-head attention", // 2 tokens, below the 3-token floor
18-
"introduction", // single token
17+
"multi-head attention", // 2 tokens, below the 3-token floor
18+
"introduction", // single token
1919
"id id id penny whiting17, david moher 22", // 3 of 9 ≈ 33% → real author line, kept
2020
"id id elie a. akl 8, sue e. brennan", // 2 of 8 → kept
2121
}

0 commit comments

Comments
 (0)