mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
filepath: path separator (#3756)
This commit is contained in:
@@ -3,6 +3,7 @@ module main
|
||||
import (
|
||||
os
|
||||
os.cmdline
|
||||
filepath
|
||||
testing
|
||||
)
|
||||
|
||||
@@ -39,7 +40,7 @@ pub fn main() {
|
||||
}
|
||||
if os.is_dir(targ) {
|
||||
// Fetch all tests from the directory
|
||||
ts.files << os.walk_ext( targ.trim_right(os.path_separator), '_test.v')
|
||||
ts.files << os.walk_ext( targ.trim_right(filepath.separator), '_test.v')
|
||||
continue
|
||||
}
|
||||
println('Unrecognized test file $targ .')
|
||||
|
||||
Reference in New Issue
Block a user