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:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user