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

os: enable is_file tests (#6312)

This commit is contained in:
Larpon 2020-09-06 12:39:02 +02:00 committed by GitHub
parent 4d2c8a40d6
commit b4b898b769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ fn test_create_file() {
assert hello.len == os.file_size(filename)
os.rm(filename)
}
/*
fn test_is_file() {
// Setup
work_dir := os.join_path(os.getwd(),'is_file_test')
@ -84,7 +84,7 @@ fn test_is_file() {
assert os.is_file(fsymlink)
}
}
*/
fn test_write_and_read_string_to_file() {
filename := './test1.txt'
hello := 'hello world!'