os: enable is_file tests (#6312)
parent
4d2c8a40d6
commit
b4b898b769
|
@ -54,7 +54,7 @@ fn test_create_file() {
|
||||||
assert hello.len == os.file_size(filename)
|
assert hello.len == os.file_size(filename)
|
||||||
os.rm(filename)
|
os.rm(filename)
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
fn test_is_file() {
|
fn test_is_file() {
|
||||||
// Setup
|
// Setup
|
||||||
work_dir := os.join_path(os.getwd(),'is_file_test')
|
work_dir := os.join_path(os.getwd(),'is_file_test')
|
||||||
|
@ -84,7 +84,7 @@ fn test_is_file() {
|
||||||
assert os.is_file(fsymlink)
|
assert os.is_file(fsymlink)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
fn test_write_and_read_string_to_file() {
|
fn test_write_and_read_string_to_file() {
|
||||||
filename := './test1.txt'
|
filename := './test1.txt'
|
||||||
hello := 'hello world!'
|
hello := 'hello world!'
|
||||||
|
|
Loading…
Reference in New Issue