os: fix os_test

pull/4110/head
Alexander Medvednikov 2020-03-24 17:16:00 +01:00
parent 5d976d841b
commit 0e240458d3
1 changed files with 2 additions and 2 deletions

View File

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