X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/51b3b2624d4b1e4608eb9addd7d292cc5174a047..19d69b34e5e90589e4be4185852aab7135d59303:/tests/string_quotes.py diff --git a/tests/string_quotes.py b/tests/string_quotes.py index f2d720b..8ccd041 100644 --- a/tests/string_quotes.py +++ b/tests/string_quotes.py @@ -1,3 +1,7 @@ +'\'' +'"' +"'" +"\"" "Hello" "Don't do that" 'Here is a "' @@ -18,9 +22,29 @@ 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\ +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 +"'" +'"' +"'" +'"' "Hello" "Don't do that" 'Here is a "' @@ -41,3 +65,19 @@ 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\ +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 = """""'