X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f71db23824a25300618dd0625085ade8d2b3a7a8..cd4295dd9888f491cfd9aae060d7832b7f831b24:/tests/data/string_quotes.py?ds=sidebyside diff --git a/tests/data/string_quotes.py b/tests/data/string_quotes.py index 1ac6b06..5a4bc5d 100644 --- a/tests/data/string_quotes.py +++ b/tests/data/string_quotes.py @@ -1,3 +1,4 @@ +'''''' '\'' '"' "'" @@ -42,9 +43,17 @@ re.compile(r'[\\"]') "unnecessary \'\'escaping" '\\""' "\\''" +'Lots of \\\\\\\\\'quotes\'' +f'{y * " "} \'{z}\'' +f'{{y * " "}} \'{z}\'' +f'\'{z}\' {y * " "}' +f'{y * x} \'{z}\'' +'\'{z}\' {y * " "}' +'{y * x} \'{z}\'' # output +"""""" "'" '"' "'" @@ -70,12 +79,7 @@ r"Date d\'expiration:(.*)" r'Tricky "quote' r"Not-so-tricky \"quote" rf"{yay}" -"\n\ -The \"quick\"\n\ -brown fox\n\ -jumps over\n\ -the 'lazy' dog.\n\ -" +"\nThe \"quick\"\nbrown fox\njumps over\nthe 'lazy' dog.\n" re.compile(r'[\\"]') "x = ''; y = \"\"" "x = '''; y = \"\"" @@ -89,3 +93,10 @@ re.compile(r'[\\"]') "unnecessary ''escaping" '\\""' "\\''" +"Lots of \\\\\\\\'quotes'" +f'{y * " "} \'{z}\'' +f"{{y * \" \"}} '{z}'" +f'\'{z}\' {y * " "}' +f"{y * x} '{z}'" +"'{z}' {y * \" \"}" +"{y * x} '{z}'"