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

Remove click pin in diff-shades workflow (#2979)
[etc/vim.git] / tests / data / power_op_spacing.py
1 def function(**kwargs):
2     t = a**2 + b**3
3     return t ** 2
4
5
6 def function_replace_spaces(**kwargs):
7     t = a **2 + b** 3 + c ** 4
8
9
10 def function_dont_replace_spaces():
11     {**a, **b, **c}
12
13
14 a = 5**~4
15 b = 5 ** f()
16 c = -(5**2)
17 d = 5 ** f["hi"]
18 e = lazy(lambda **kwargs: 5)
19 f = f() ** 5
20 g = a.b**c.d
21 h = 5 ** funcs.f()
22 i = funcs.f() ** 5
23 j = super().name ** 5
24 k = [(2**idx, value) for idx, value in pairs]
25 l = mod.weights_[0] == pytest.approx(0.95**100, abs=0.001)
26 m = [([2**63], [1, 2**63])]
27 n = count <= 10**5
28 o = settings(max_examples=10**6)
29 p = {(k, k**2): v**2 for k, v in pairs}
30 q = [10**i for i in range(6)]
31 r = x**y
32
33 a = 5.0**~4.0
34 b = 5.0 ** f()
35 c = -(5.0**2.0)
36 d = 5.0 ** f["hi"]
37 e = lazy(lambda **kwargs: 5)
38 f = f() ** 5.0
39 g = a.b**c.d
40 h = 5.0 ** funcs.f()
41 i = funcs.f() ** 5.0
42 j = super().name ** 5.0
43 k = [(2.0**idx, value) for idx, value in pairs]
44 l = mod.weights_[0] == pytest.approx(0.95**100, abs=0.001)
45 m = [([2.0**63.0], [1.0, 2**63.0])]
46 n = count <= 10**5.0
47 o = settings(max_examples=10**6.0)
48 p = {(k, k**2): v**2.0 for k, v in pairs}
49 q = [10.5**i for i in range(6)]
50
51
52 # output
53
54
55 def function(**kwargs):
56     t = a**2 + b**3
57     return t**2
58
59
60 def function_replace_spaces(**kwargs):
61     t = a**2 + b**3 + c**4
62
63
64 def function_dont_replace_spaces():
65     {**a, **b, **c}
66
67
68 a = 5**~4
69 b = 5 ** f()
70 c = -(5**2)
71 d = 5 ** f["hi"]
72 e = lazy(lambda **kwargs: 5)
73 f = f() ** 5
74 g = a.b**c.d
75 h = 5 ** funcs.f()
76 i = funcs.f() ** 5
77 j = super().name ** 5
78 k = [(2**idx, value) for idx, value in pairs]
79 l = mod.weights_[0] == pytest.approx(0.95**100, abs=0.001)
80 m = [([2**63], [1, 2**63])]
81 n = count <= 10**5
82 o = settings(max_examples=10**6)
83 p = {(k, k**2): v**2 for k, v in pairs}
84 q = [10**i for i in range(6)]
85 r = x**y
86
87 a = 5.0**~4.0
88 b = 5.0 ** f()
89 c = -(5.0**2.0)
90 d = 5.0 ** f["hi"]
91 e = lazy(lambda **kwargs: 5)
92 f = f() ** 5.0
93 g = a.b**c.d
94 h = 5.0 ** funcs.f()
95 i = funcs.f() ** 5.0
96 j = super().name ** 5.0
97 k = [(2.0**idx, value) for idx, value in pairs]
98 l = mod.weights_[0] == pytest.approx(0.95**100, abs=0.001)
99 m = [([2.0**63.0], [1.0, 2**63.0])]
100 n = count <= 10**5.0
101 o = settings(max_examples=10**6.0)
102 p = {(k, k**2): v**2.0 for k, v in pairs}
103 q = [10.5**i for i in range(6)]