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

Formalise style preference description (#2818)
[etc/vim.git] / tests / data / 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 # output
26
27 importA
28 (
29     ()
30     << 0
31     ** 101234234242352525425252352352525234890264906820496920680926538059059209922523523525
32 )  #
33
34 assert (
35     sort_by_dependency(
36         {
37             "1": {"2", "3"},
38             "2": {"2a", "2b"},
39             "3": {"3a", "3b"},
40             "2a": set(),
41             "2b": set(),
42             "3a": set(),
43             "3b": set(),
44         }
45     )
46     == ["2a", "2b", "2", "3a", "3b", "3", "1"]
47 )
48
49 importA
50 0
51 0 ^ 0  #
52
53
54 class A:
55     def foo(self):
56         for _ in range(10):
57             aaaaaaaaaaaaaaaaaaa = bbbbbbbbbbbbbbb.cccccccccc(
58                 xxxxxxxxxxxx
59             )  # pylint: disable=no-member
60
61
62 def test(self, othr):
63     return 1 == 2 and (
64         name,
65         description,
66         self.default,
67         self.selected,
68         self.auto_generated,
69         self.parameters,
70         self.meta_data,
71         self.schedule,
72     ) == (
73         name,
74         description,
75         othr.default,
76         othr.selected,
77         othr.auto_generated,
78         othr.parameters,
79         othr.meta_data,
80         othr.schedule,
81     )