mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
add new test
This commit is contained in:
parent
1e34537bb2
commit
05da5007ed
1 changed files with 1 additions and 0 deletions
|
@ -257,6 +257,7 @@ func TestValidFileName(t *testing.T) {
|
|||
assert.True(t, ValidFileName("[something].csl"))
|
||||
// contains regular characters
|
||||
assert.True(t, ValidFileName("[(something)].csl"))
|
||||
assert.True(t, ValidFileName("_index_slash_ssl.html"))
|
||||
// contains invisible character
|
||||
assert.False(t, ValidFileName("D中文.cslouglas"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue