From a215e3260a336c3b72e7b0f7f2db3c0ce6855ad3 Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Sat, 2 Aug 2025 10:07:06 +1200 Subject: [PATCH] tests/links/symlink: Check file count And also that `src/dir/script.ys` exists --- tests/links/symlink.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/links/symlink.py b/tests/links/symlink.py index bf5bd6b..f274d61 100644 --- a/tests/links/symlink.py +++ b/tests/links/symlink.py @@ -4,6 +4,7 @@ import sys def main(): workdir, task = sys.argv[1:] src = Path(workdir) / "src" + count = 0 for srcfile in src.iterdir(): if srcfile.name == "heredoc": assert(not srcfile.is_symlink()) @@ -13,6 +14,10 @@ def main(): else: assert(srcfile.is_symlink() == (task == "link")) assert(srcfile.name != "script.ys") + count += 1 + assert(count == 4) + script_ys = src / "dir" / "script.ys" + assert(script_ys.exists()) if __name__ == "__main__": main()