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

os: fix truncate() on windows (#18262)

This commit is contained in:
yuyi
2023-05-25 19:37:53 +08:00
committed by GitHub
parent bc88183318
commit caee3935a5
3 changed files with 14 additions and 7 deletions

View File

@ -447,5 +447,9 @@ fn test_open_file_on_chinese_windows() {
f1.close()
assert os.read_file('.txt')! == 'test'
assert os.file_size('.txt') == 4
os.truncate('.txt', 2)!
assert os.file_size('.txt') == 2
}
}