mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
os: cleanup APIs returning !bool
to either return !
or bool
(#16111)
This commit is contained in:
parent
ac63fa1b11
commit
2083e6b04c
13 changed files with 69 additions and 109 deletions
|
@ -13,13 +13,12 @@ fn test_tmpdir() {
|
|||
os.rm(tfile) or { panic(err) }
|
||||
}
|
||||
|
||||
fn test_is_writable_folder() {
|
||||
fn test_ensure_folder_is_writable() {
|
||||
tmp := os.temp_dir()
|
||||
f := os.is_writable_folder(tmp) or {
|
||||
os.ensure_folder_is_writable(tmp) or {
|
||||
eprintln('err: $err')
|
||||
false
|
||||
assert false
|
||||
}
|
||||
assert f
|
||||
}
|
||||
|
||||
fn test_expand_tilde_to_home() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue