X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2e0bb0fa9f9fffedecaa1f088f313f6c2d6df965..29e97d1d4a7717f1bd0ca35cacf2f2ce6d815b0c:/tests/string_quotes.py

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"
+'\\""'
+"\\''"