1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: fix is_abs_path function for Windows systems (#14397)

This commit is contained in:
Ben
2022-05-16 08:59:37 +02:00
committed by GitHub
parent 7fe3ef9a6e
commit cbb24d34c9
4 changed files with 115 additions and 20 deletions

View File

@ -590,14 +590,6 @@ fn test_ext() {
assert os.file_ext('file') == ''
}
fn test_is_abs() {
assert os.is_abs_path('/home/user')
assert os.is_abs_path('v/vlib') == false
$if windows {
assert os.is_abs_path('C:\\Windows\\')
}
}
fn test_join() {
$if windows {
assert os.join_path('v', 'vlib', 'os') == 'v\\vlib\\os'