]> git.madduck.net Git - etc/vim.git/blob - tests/data/simple_cases/torture.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:

2a194759a821ecb1b8529dc71cd5d6363a2e69d9
[etc/vim.git] / tests / data / simple_cases / torture.py
1 importA;() << 0 ** 101234234242352525425252352352525234890264906820496920680926538059059209922523523525 #
2
3 assert sort_by_dependency(
4     {
5         "1": {"2", "3"}, "2": {"2a", "2b"}, "3": {"3a", "3b"},
6         "2a": set(), "2b": set(), "3a": set(), "3b": set()
7     }
8 ) == ["2a", "2b", "2", "3a", "3b", "3", "1"]
9
10 importA
11 0;0^0#
12
13 class A:
14     def foo(self):
15         for _ in range(10):
16             aaaaaaaaaaaaaaaaaaa = bbbbbbbbbbbbbbb.cccccccccc(  # pylint: disable=no-member
17                 xxxxxxxxxxxx
18             )
19
20 def test(self, othr):
21     return (1 == 2 and
22             (name, description, self.default, self.selected, self.auto_generated, self.parameters, self.meta_data, self.schedule) ==
23             (name, description, othr.default, othr.selected, othr.auto_generated, othr.parameters, othr.meta_data, othr.schedule))
24
25
26 assert (
27     a_function(very_long_arguments_that_surpass_the_limit, which_is_eighty_eight_in_this_case_plus_a_bit_more)
28     == {"x": "this need to pass the line limit as well", "b": "but only by a little bit"}
29 )
30
31 # output
32
33 importA
34 (
35     ()
36     << 0
37     ** 101234234242352525425252352352525234890264906820496920680926538059059209922523523525
38 )  #
39
40 assert sort_by_dependency(
41     {
42         "1": {"2", "3"},
43         "2": {"2a", "2b"},
44         "3": {"3a", "3b"},
45         "2a": set(),
46         "2b": set(),
47         "3a": set(),
48         "3b": set(),
49     }
50 ) == ["2a", "2b", "2", "3a", "3b", "3", "1"]
51
52 importA
53 0
54 0 ^ 0  #
55
56
57 class A:
58     def foo(self):
59         for _ in range(10):
60             aaaaaaaaaaaaaaaaaaa = bbbbbbbbbbbbbbb.cccccccccc(
61                 xxxxxxxxxxxx
62             )  # pylint: disable=no-member
63
64
65 def test(self, othr):
66     return 1 == 2 and (
67         name,
68         description,
69         self.default,
70         self.selected,
71         self.auto_generated,
72         self.parameters,
73         self.meta_data,
74         self.schedule,
75     ) == (
76         name,
77         description,
78         othr.default,
79         othr.selected,
80         othr.auto_generated,
81         othr.parameters,
82         othr.meta_data,
83         othr.schedule,
84     )
85
86
87 assert a_function(
88     very_long_arguments_that_surpass_the_limit,
89     which_is_eighty_eight_in_this_case_plus_a_bit_more,
90 ) == {"x": "this need to pass the line limit as well", "b": "but only by a little bit"}
91