From 673d0297aa7155f6dbdbdec2dbad9842e603b56e Mon Sep 17 00:00:00 2001 From: Boyan Date: Sat, 7 Dec 2024 09:43:35 +0100 Subject: [PATCH] Sorted the test cases by modified time --- ucompile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ucompile b/ucompile index 7b2158c..d06645b 100755 --- a/ucompile +++ b/ucompile @@ -23,8 +23,8 @@ def run_input_cases(program, args): tests_dir = args.tests_dir if args.tests_dir else "." time_flag = args.time - input_files = glob(os.path.join(tests_dir, "*.in")) - + input_files = sorted(glob(os.path.join(tests_dir, "*.in")), key=os.path.getmtime) + if len(input_files) < 1: if time_flag: start_time = time.perf_counter()