mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: fix os.file_ext('/tmp/.gitignore')
previously returning '.gitignore' => it now returns '' (#16771)
This commit is contained in:
@ -599,6 +599,10 @@ fn test_file_ext() {
|
||||
assert os.file_ext('file...') == ''
|
||||
assert os.file_ext('.file.') == ''
|
||||
assert os.file_ext('..file..') == ''
|
||||
assert os.file_ext('./.git') == ''
|
||||
assert os.file_ext('./.git/') == ''
|
||||
assert os.file_ext('\\.git') == ''
|
||||
assert os.file_ext('\\.git\\') == ''
|
||||
}
|
||||
|
||||
fn test_join() {
|
||||
|
Reference in New Issue
Block a user