Remove miscellaneous characters generated due varying CLI size

This commit is contained in:
rajajisai
2025-08-06 16:02:15 -07:00
parent 3dd08864f9
commit 44ba3caaaa

View File

@@ -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