From bb0716e9b9b1111516f1dab96fd9498facc0cd08 Mon Sep 17 00:00:00 2001 From: ahmedsamyh Date: Sat, 16 Nov 2024 22:51:43 +0500 Subject: [PATCH] [test.py] Iterate over the files in alphabetical order. --- test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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) -- 2.39.5