commit: 9f519629b20042a02e547c310d95d958776573f0
parent ba44c4e611c22458fad42713a911d2f22c47b24c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 18 Jul 2022 03:10:58 +0200
Update test assertions based on amount of files
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/main.ha b/main.ha
@@ -152,6 +152,7 @@ fn check_dir(dirname: str) (void | errors::invalid) = {
case let e: fs::error =>
fmt::fatalf("os::readdir({}): {}", dirname, fs::strerror(e));
};
+ assert(len(files_before) == 10);
const ret = check_dir(dirname);
assert(ret is void);
@@ -162,9 +163,7 @@ fn check_dir(dirname: str) (void | errors::invalid) = {
case let e: fs::error =>
fmt::fatalf("os::readdir({}): {}", dirname, fs::strerror(e));
};
-
- assert(len(files_after) == 5);
- assert(len(files_before) == 9);
+ assert(len(files_after) == 6);
};
export fn main() void = {