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

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