From: ahmedsamyh Date: Sat, 16 Nov 2024 17:51:43 +0000 (+0500) Subject: [test.py] Iterate over the files in alphabetical order. X-Git-Url: https://www.git.momoyon.org/?a=commitdiff_plain;h=bb0716e9b9b1111516f1dab96fd9498facc0cd08;p=lang.git [test.py] Iterate over the files in alphabetical order. --- diff --git a/test.py b/test.py index 3582442..3824c08 100644 --- a/test.py +++ b/test.py @@ -65,7 +65,20 @@ def test_source_file(filename: str): def main(): + # arr = [ + # './tests/01-unterminated-string.momo', + # './tests/06-single-char-symbols.momo', + # './tests/04-identifier.momo', + # './tests/05-multiple-identifiers.momo', + # './tests/02-string.momo', + # './tests/03-whitespaced-string.momo', + # ] + # arr = sorted(arr) + + # print(arr) + for (dirpath, dirs, files) in os.walk(TESTS_DIR): + files = sorted(files) for f in files: if f.endswith(MOMO_FILE_SUFFIX): test_source_file(TESTS_DIR + f)