8000 improve test cases for cleanPath · etherscan-io/sftp@abc70d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit abc70d5

Browse files
committed
improve test cases for cleanPath
1 parent 166a37e commit abc70d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

request-server_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,4 +423,5 @@ func TestCleanPath(t *testing.T) {
423423
assert.Equal(t, "/a", cleanPath("a"+bslash))
424424
assert.Equal(t, "/a/b/c",
425425
cleanPath(bslash+"a"+bslash+bslash+"b"+bslash+bslash+"c"+bslash))
426+
assert.Equal(t, "/C:/a", cleanPath("C:"+bslash+"a"))
426427
}

0 commit comments

Comments
 (0)
0