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:
parent
5d976d841b
commit
0e240458d3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user