X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2e0bb0fa9f9fffedecaa1f088f313f6c2d6df965..2c6413f2b250be2d52cad461c67a4d1c3a0099af:/tests/string_quotes.py?ds=sidebyside diff --git a/tests/string_quotes.py b/tests/string_quotes.py index c66b6ee..1ac6b06 100644 --- a/tests/string_quotes.py +++ b/tests/string_quotes.py @@ -22,6 +22,7 @@ r"raw string ftw" r'Date d\'expiration:(.*)' r'Tricky "quote' r'Not-so-tricky \"quote' +rf'{yay}' '\n\ The \"quick\"\n\ brown fox\n\ @@ -29,6 +30,18 @@ jumps over\n\ the \'lazy\' dog.\n\ ' re.compile(r'[\\"]') +"x = ''; y = \"\"" +"x = '''; y = \"\"" +"x = ''''; y = \"\"" +"x = '' ''; y = \"\"" +"x = ''; y = \"\"\"" +"x = '''; y = \"\"\"\"" +"x = ''''; y = \"\"\"\"\"" +"x = '' ''; y = \"\"\"\"\"" +'unnecessary \"\"escaping' +"unnecessary \'\'escaping" +'\\""' +"\\''" # output @@ -56,6 +69,7 @@ r"raw string ftw" r"Date d\'expiration:(.*)" r'Tricky "quote' r"Not-so-tricky \"quote" +rf"{yay}" "\n\ The \"quick\"\n\ brown fox\n\ @@ -63,3 +77,15 @@ jumps over\n\ the 'lazy' dog.\n\ " re.compile(r'[\\"]') +"x = ''; y = \"\"" +"x = '''; y = \"\"" +"x = ''''; y = \"\"" +"x = '' ''; y = \"\"" +'x = \'\'; y = """' +'x = \'\'\'; y = """"' +'x = \'\'\'\'; y = """""' +'x = \'\' \'\'; y = """""' +'unnecessary ""escaping' +"unnecessary ''escaping" +'\\""' +"\\''"