From b4b898b7697cb354973bffa8306a9f011dd7e947 Mon Sep 17 00:00:00 2001 From: Larpon Date: Sun, 6 Sep 2020 12:39:02 +0200 Subject: [PATCH] os: enable is_file tests (#6312) --- vlib/os/os_test.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/os/os_test.v b/vlib/os/os_test.v index 1844b1bcc2..bc450aaead 100644 --- a/vlib/os/os_test.v +++ b/vlib/os/os_test.v @@ -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!'