]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/black/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:

Add '.vim/bundle/black/' from commit '2f3fa1f6d0cbc2a3f31c7440c422da173b068e7b'
[etc/vim.git] / .vim / bundle / black / 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 assert str(result) == "This long string should be split at some point right close to or around hereeeeeee"
33 assert str(result) < "This long string should be split at some point right close to or around hereeeeee"
34 assert "A format string: %s" % "This long string should be split at some point right close to or around hereeeeeee" != result
35 msg += "This long string should be wrapped in parens at some point right around hereeeee"
36 msg += "This long string should be split at some point right close to or around hereeeeeeee"
37 msg += "This long string should not be split at any point ever since it is just righttt"
38
39
40 # output
41
42
43 some_variable = "This string is long but not so long that it needs to be split just yet"
44 some_variable = "This string is long but not so long that it needs to be split just yet"
45 some_variable = (
46     "This string is long, just long enough that it needs to be split, u get?"
47 )
48 some_variable = (
49     "This string is long, just long enough that it needs to be split, u get?"
50 )
51 some_variable = (
52     "This string is long, just long enough that it needs to be split, u get? So we stay"
53 )
54 some_variable = (
55     "This string is long, just long enough that it needs to be split, u get? So we stay"
56 )
57 some_variable = (
58     "This string is long, just long enough that it needs to be split, u get? So we"
59     " split"
60 )
61 some_variable = (
62     "This string is long, just long enough that it needs to be split, u get? So we"
63     " split"
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 alll".format(
68         "ha"
69     )
70 )
71 some_variable = (
72     "This string is long but not so long that it needs hahahah toooooo be so greatttt"
73     " {} that I just can't think of any more good words to say about it at allll"
74     .format("ha")
75 )
76 some_variable = (
77     "This string is long but not so long that it needs hahahah toooooo be so greatttt"
78     " {} that I just can't think of any more good words to say about it at alllllllllll"
79     .format("ha")
80 )
81 some_variable = (
82     "This string is long but not so long that it needs hahahah toooooo be so greatttt"
83     " {} that I just can't think of any more good words to say about it at"
84     " allllllllllll".format("ha")
85 )
86 some_variable = (
87     "This is a long string that will end with a method that is not calleddd".format
88 )
89 addition_inside_tuple = (
90     some_string_inside_a_variable
91     + "Some string that is just long enough to cause a split to take"
92     " place.............",
93     xyz,
94     "Some really long string that needs to get split eventually but I'm running out of"
95     " things to say"
96     + some_string_inside_a_variable,
97 )
98 addition_inside_tuple = (
99     some_string_inside_a_variable
100     + "Some string that is just long enough to cause a split to take"
101     " place.............."
102 )
103 return (
104     "Hi there. This is areally really reallllly long string that needs to be split!!!"
105 )
106 ternary_expression = (
107     "Short String"
108     if some_condition
109     else (
110         "This is a really long string that will eventually need to be split right here."
111     )
112 )
113 return (
114     f"{x}/b/c/d/d/d/dadfjsadjsaidoaisjdsfjaofjdfijaidfjaodfjaoifjodjafojdoajaaaaaaaaaaa"
115 )
116 return f"{x}/b/c/d/d/d/dadfjsadjsaidoaisjdsfjaofjdfijaidfjaodfjaoifjodjafojdoajaaaaaaaaaaaa"
117 assert (
118     str(result)
119     == "This long string should be split at some point right close to or around"
120     " hereeeeeee"
121 )
122 assert (
123     str(result)
124     < "This long string should be split at some point right close to or around"
125     " hereeeeee"
126 )
127 assert (
128     "A format string: %s"
129     % "This long string should be split at some point right close to or around"
130     " hereeeeeee"
131     != result
132 )
133 msg += (
134     "This long string should be wrapped in parens at some point right around hereeeee"
135 )
136 msg += (
137     "This long string should be split at some point right close to or around"
138     " hereeeeeeee"
139 )
140 msg += "This long string should not be split at any point ever since it is just righttt"