From d2f21bccfa22224f6738a8074e61fb9d40617a5e Mon Sep 17 00:00:00 2001 From: Taiizor <41683699+Taiizor@users.noreply.github.com> Date: Thu, 8 Oct 2026 05:15:22 +0300 Subject: [PATCH] test: buggy helper for AI review check --- src/lib.alya | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/lib.alya b/src/lib.alya index d33070c..91a2aad 100644 --- a/src/lib.alya +++ b/src/lib.alya @@ -129,3 +129,17 @@ end pub function print_version(app: CliApp) say cli_format_version(app) end + +## Counts non-empty args (test helper for AI review). +pub function count_args(args: array) -> int + let n = 0 + let unused_x = 1 + let i = 0 + while i < len(args) - 1 + if len(args[i]) > 0 + n += 1 + end + i += 1 + end + return n +end