]> 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:

7cabd4c163fb95224b5efdaec56603a711eefeab
[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 sort_by_dependency(
35     {
36         "1": {"2", "3"},
37         "2": {"2a", "2b"},
38         "3": {"3a", "3b"},
39         "2a": set(),
40         "2b": set(),
41         "3a": set(),
42         "3b": set(),
43     }
44 ) == ["2a", "2b", "2", "3a", "3b", "3", "1"]
45
46 importA
47 0
48 0 ^ 0  #
49
50
51 class A:
52     def foo(self):
53         for _ in range(10):
54             aaaaaaaaaaaaaaaaaaa = bbbbbbbbbbbbbbb.cccccccccc(
55                 xxxxxxxxxxxx
56             )  # pylint: disable=no-member
57
58
59 def test(self, othr):
60     return 1 == 2 and (
61         name,
62         description,
63         self.default,
64         self.selected,
65         self.auto_generated,
66         self.parameters,
67         self.meta_data,
68         self.schedule,
69     ) == (
70         name,
71         description,
72         othr.default,
73         othr.selected,
74         othr.auto_generated,
75         othr.parameters,
76         othr.meta_data,
77         othr.schedule,
78     )