From 44ba3caaaa897de666c26a22d8a973ecbdc08cc0 Mon Sep 17 00:00:00 2001 From: rajajisai Date: Wed, 6 Aug 2025 16:02:15 -0700 Subject: [PATCH] Remove miscellaneous characters generated due varying CLI size --- testing/tester.tcl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testing/tester.tcl b/testing/tester.tcl index 98d06f26f..6fbfa2dd5 100644 --- a/testing/tester.tcl +++ b/testing/tester.tcl @@ -191,9 +191,13 @@ proc run_test_expecting_error_content {sqlite_exec db_name sql expected_error_te exit 1 } + # Remove box-drawing characters, multiplication signs, and other non-ASCII junk + set cleaned_result [regsub -all {[\u2500-\u257F\u00D7]} $result ""] + #TODO any other possible cleanups? + # Normalize both the actual and expected error messages # Remove all whitespace, newlines, and special characters for comparison - set normalized_actual [regsub -all {[[:space:]]|[[:punct:]]} $result ""] + set normalized_actual [regsub -all {[[:space:]]|[[:punct:]]} $cleaned_result ""] set normalized_expected [regsub -all {[[:space:]]|[[:punct:]]} $expected_error_text ""] # Convert to lowercase for case-insensitive comparison