tests: add more common patterns of os function usage in the -autofree test import_os_and_use_its_constants.v

pull/12550/head
Delyan Angelov 2021-11-22 13:36:58 +02:00
parent c3b8e5e181
commit 5e1782bf9c
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 18 additions and 0 deletions

View File

@ -17,4 +17,22 @@ fn main() {
z := x + t
println(z)
me := os.executable()
println(me)
me_realpath := os.real_path(me)
println(me_realpath)
exe_realpath := os.real_path(os.executable())
println(exe_realpath)
// exeparent_folder := os.dir(exe_realpath)
// println(exeparent_folder)
cdir := os.join_path(os.home_dir(), '.cache')
println(cdir)
wd_realpath := os.real_path(os.wd_at_startup)
println(wd_realpath)
}