os: enable is_file tests (#6312)

pull/6297/head^2
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
1 changed files with 2 additions and 2 deletions

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!'