1
0
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:
yuyi
2022-12-26 18:53:38 +08:00
committed by GitHub
parent 64ed007f94
commit 68883fc4d9
2 changed files with 7 additions and 2 deletions

View File

@ -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() {