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

os: fix os_test

This commit is contained in:
Alexander Medvednikov 2020-03-24 17:16:00 +01:00
parent 5d976d841b
commit 0e240458d3

View File

@ -11,10 +11,10 @@ fn testsuite_end() {
fn test_open_file() {
filename := './test1.txt'
hello := 'hello world!'
os.open_file(filename, 'r+',0666) or {
os.open_file(filename, 'r+', 0o666) or {
assert err == 'No such file or directory'
}
mut file := os.open_file(filename, 'w+',0666) or {
mut file := os.open_file(filename, 'w+', 0o666) or {
panic(err)
}
file.write(hello)