mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: fix sporadic failing glob_test.v
This commit is contained in:
parent
9315154201
commit
ec585b4a54
@ -41,15 +41,15 @@ fn test_glob_can_find_v_files_3_levels_deep() ? {
|
||||
fn test_glob_can_find_files_in_current_folder() ? {
|
||||
os.chdir(@VMODROOT)
|
||||
matches := os.glob('*') ?
|
||||
assert '.gitignore' in matches
|
||||
assert 'make.bat' in matches
|
||||
assert 'Makefile' in matches
|
||||
assert 'Dockerfile' in matches
|
||||
assert 'README.md' in matches
|
||||
assert 'v.mod' in matches
|
||||
assert 'cmd/' in matches
|
||||
assert 'vlib/' in matches
|
||||
for f in matches {
|
||||
if !f.ends_with(os.path_separator) {
|
||||
assert !f.ends_with('.v')
|
||||
}
|
||||
}
|
||||
assert 'thirdparty/' in matches
|
||||
}
|
||||
|
||||
fn test_glob_can_be_used_with_multiple_patterns() ? {
|
||||
|
Loading…
Reference in New Issue
Block a user