X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2e0bb0fa9f9fffedecaa1f088f313f6c2d6df965..19d69b34e5e90589e4be4185852aab7135d59303:/tests/string_quotes.py?ds=sidebyside diff --git a/tests/string_quotes.py b/tests/string_quotes.py index c66b6ee..8ccd041 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,14 @@ 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 = \"\"\"\"\"" # output @@ -56,6 +65,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 +73,11 @@ 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 = """""'