]> git.madduck.net Git - etc/vim.git/blob - tests/data/long_strings__edge_case.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

6919db5a80bcd1b852f321fbec45dba77ee63de6
[etc/vim.git] / tests / data / long_strings__edge_case.py
1 some_variable = "This string is long but not so long that it needs to be split just yet"
2 some_variable = 'This string is long but not so long that it needs to be split just yet'
3 some_variable = "This string is long, just long enough that it needs to be split, u get?"
4 some_variable = 'This string is long, just long enough that it needs to be split, u get?'
5 some_variable = "This string is long, just long enough that it needs to be split, u get? So we stay"
6 some_variable = 'This string is long, just long enough that it needs to be split, u get? So we stay'
7 some_variable = "This string is long, just long enough that it needs to be split, u get? So we split"
8 some_variable = 'This string is long, just long enough that it needs to be split, u get? So we split'
9 some_variable = "This string is long but not so long that it needs hahahah toooooo be so greatttt {} that I just can't think of any more good words to say about it at alll".format("ha")
10 some_variable = "This string is long but not so long that it needs hahahah toooooo be so greatttt {} that I just can't think of any more good words to say about it at allll".format("ha")
11 some_variable = "This string is long but not so long that it needs hahahah toooooo be so greatttt {} that I just can't think of any more good words to say about it at alllllllllll".format("ha")
12 some_variable = "This string is long but not so long that it needs hahahah toooooo be so greatttt {} that I just can't think of any more good words to say about it at allllllllllll".format("ha")
13 some_variable = "This is a long string that will end with a method that is not calleddd".format
14 addition_inside_tuple = (
15     some_string_inside_a_variable
16     + "Some string that is just long enough to cause a split to take place.............",
17     xyz,
18     "Some really long string that needs to get split eventually but I'm running out of things to say" + some_string_inside_a_variable
19 )
20 addition_inside_tuple = (
21     some_string_inside_a_variable
22     + "Some string that is just long enough to cause a split to take place.............."
23 )
24 return "Hi there. This is areally really reallllly long string that needs to be split!!!"
25 ternary_expression = (
26     "Short String"
27     if some_condition
28     else "This is a really long string that will eventually need to be split right here."
29 )
30 return f'{x}/b/c/d/d/d/dadfjsadjsaidoaisjdsfjaofjdfijaidfjaodfjaoifjodjafojdoajaaaaaaaaaaa'
31 return f'{x}/b/c/d/d/d/dadfjsadjsaidoaisjdsfjaofjdfijaidfjaodfjaoifjodjafojdoajaaaaaaaaaaaa'
32
33
34 # output
35
36
37 some_variable = "This string is long but not so long that it needs to be split just yet"
38 some_variable = "This string is long but not so long that it needs to be split just yet"
39 some_variable = (
40     "This string is long, just long enough that it needs to be split, u get?"
41 )
42 some_variable = (
43     "This string is long, just long enough that it needs to be split, u get?"
44 )
45 some_variable = (
46     "This string is long, just long enough that it needs to be split, u get? So we stay"
47 )
48 some_variable = (
49     "This string is long, just long enough that it needs to be split, u get? So we stay"
50 )
51 some_variable = (
52     "This string is long, just long enough that it needs to be split, u get? So we"
53     " split"
54 )
55 some_variable = (
56     "This string is long, just long enough that it needs to be split, u get? So we"
57     " split"
58 )
59 some_variable = (
60     "This string is long but not so long that it needs hahahah toooooo be so greatttt"
61     " {} that I just can't think of any more good words to say about it at alll".format(
62         "ha"
63     )
64 )
65 some_variable = (
66     "This string is long but not so long that it needs hahahah toooooo be so greatttt"
67     " {} that I just can't think of any more good words to say about it at allll"
68     .format("ha")
69 )
70 some_variable = (
71     "This string is long but not so long that it needs hahahah toooooo be so greatttt"
72     " {} that I just can't think of any more good words to say about it at alllllllllll"
73     .format("ha")
74 )
75 some_variable = (
76     "This string is long but not so long that it needs hahahah toooooo be so greatttt"
77     " {} that I just can't think of any more good words to say about it at"
78     " allllllllllll".format("ha")
79 )
80 some_variable = (
81     "This is a long string that will end with a method that is not calleddd".format
82 )
83 addition_inside_tuple = (
84     some_string_inside_a_variable
85     + "Some string that is just long enough to cause a split to take"
86     " place.............",
87     xyz,
88     "Some really long string that needs to get split eventually but I'm running out of"
89     " things to say"
90     + some_string_inside_a_variable,
91 )
92 addition_inside_tuple = (
93     some_string_inside_a_variable
94     + "Some string that is just long enough to cause a split to take"
95     " place.............."
96 )
97 return (
98     "Hi there. This is areally really reallllly long string that needs to be split!!!"
99 )
100 ternary_expression = (
101     "Short String"
102     if some_condition
103     else (
104         "This is a really long string that will eventually need to be split right here."
105     )
106 )
107 return (
108     f"{x}/b/c/d/d/d/dadfjsadjsaidoaisjdsfjaofjdfijaidfjaodfjaoifjodjafojdoajaaaaaaaaaaa"
109 )
110 return f"{x}/b/c/d/d/d/dadfjsadjsaidoaisjdsfjaofjdfijaidfjaodfjaoifjodjafojdoajaaaaaaaaaaaa"