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

7c16bdfb3a52bd5ff45ffd89fe430504fe40d3c6
[etc/vim.git] / tests / data / simple_cases / attribute_access_on_number_literals.py
1 x = 123456789 .bit_count()
2 x = (123456).__abs__()
3 x = .1.is_integer()
4 x = 1. .imag
5 x = 1E+1.imag
6 x = 1E-1.real
7 x = 123456789.123456789.hex()
8 x = 123456789.123456789E123456789 .real
9 x = 123456789E123456789 .conjugate()
10 x = 123456789J.real
11 x = 123456789.123456789J.__add__(0b1011.bit_length())
12 x = 0XB1ACC.conjugate()
13 x = 0B1011 .conjugate()
14 x = 0O777 .real
15 x = 0.000000006  .hex()
16 x = -100.0000J
17
18 if 10 .real:
19     ...
20
21 y = 100[no]
22 y = 100(no)
23
24 # output
25
26 x = (123456789).bit_count()
27 x = (123456).__abs__()
28 x = (0.1).is_integer()
29 x = (1.0).imag
30 x = (1e1).imag
31 x = (1e-1).real
32 x = (123456789.123456789).hex()
33 x = (123456789.123456789e123456789).real
34 x = (123456789e123456789).conjugate()
35 x = 123456789j.real
36 x = 123456789.123456789j.__add__(0b1011.bit_length())
37 x = 0xB1ACC.conjugate()
38 x = 0b1011.conjugate()
39 x = 0o777.real
40 x = (0.000000006).hex()
41 x = -100.0000j
42
43 if (10).real:
44     ...
45
46 y = 100[no]
47 y = 100(no)