Skip to content

Commit 3699437

Browse files
committed
test: cover Unicode fallback path
1 parent bff9ac3 commit 3699437

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ctx_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3097,6 +3097,12 @@ func Test_Ctx_Subdomains(t *testing.T) {
30973097
offset: nil,
30983098
want: []string{"bücher"},
30993099
},
3100+
{
3101+
name: "invalid domain keeps original lowercased",
3102+
host: "Foo Bar",
3103+
offset: []int{0},
3104+
want: []string{"foo bar"},
3105+
},
31003106
}
31013107

31023108
for _, tc := range cases {

0 commit comments

Comments
 (0)