X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/efcd039482de513eb2bb5f4f7688c51985c40494..e76adbecb8c3b62631868332c3b632363c7c16b4:/tests/data/string_quotes.py?ds=inline diff --git a/tests/data/string_quotes.py b/tests/data/string_quotes.py index 1994dd2..5a4bc5d 100644 --- a/tests/data/string_quotes.py +++ b/tests/data/string_quotes.py @@ -44,6 +44,12 @@ re.compile(r'[\\"]') '\\""' "\\''" 'Lots of \\\\\\\\\'quotes\'' +f'{y * " "} \'{z}\'' +f'{{y * " "}} \'{z}\'' +f'\'{z}\' {y * " "}' +f'{y * x} \'{z}\'' +'\'{z}\' {y * " "}' +'{y * x} \'{z}\'' # output @@ -73,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 = \"\"" @@ -93,3 +94,9 @@ re.compile(r'[\\"]') '\\""' "\\''" "Lots of \\\\\\\\'quotes'" +f'{y * " "} \'{z}\'' +f"{{y * \" \"}} '{z}'" +f'\'{z}\' {y * " "}' +f"{y * x} '{z}'" +"'{z}' {y * \" \"}" +"{y * x} '{z}'"