Skip to content

Commit ac25dd3

Browse files
committed
test: add unicode username test case for ParseOpts
Signed-off-by: majiayu000 <1835304752@qq.com>
1 parent e1b6080 commit ac25dd3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/remote/connutil_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func TestParseOpts(t *testing.T) {
2020
{"host only", "myserver", "", "myserver", "", false},
2121
{"chinese host alias", "PROD-服务器", "", "PROD-服务器", "", false},
2222
{"mixed ascii and chinese with user and port", "user@PROD-阿里云:22", "user", "PROD-阿里云", "22", false},
23+
{"unicode user and host", "用户@服务器:22", "用户", "服务器", "22", false},
2324
{"unicode only host", "服务器", "", "服务器", "", false},
2425
{"japanese host", "サーバー", "", "サーバー", "", false},
2526
{"empty string", "", "", "", "", true},

0 commit comments

Comments
 (0)