Implement integer literal formatting (#3183)

This commit is contained in:
Charlie Marsh 2023-02-23 13:31:56 -05:00 committed by GitHub
parent 08be7bd285
commit 376eab3a53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 64 additions and 11 deletions

View file

@ -48,11 +48,6 @@ y = 100(no)
-x = (123456789e123456789).conjugate()
-x = 123456789j.real
-x = 123456789.123456789j.__add__(0b1011.bit_length())
-x = 0xB1ACC.conjugate()
-x = 0b1011.conjugate()
-x = 0o777.real
-x = (0.000000006).hex()
-x = -100.0000j
+x = .1.is_integer()
+x = 1..imag
+x = 1E+1.imag
@ -62,9 +57,11 @@ y = 100(no)
+x = 123456789E123456789.conjugate()
+x = 123456789J.real
+x = 123456789.123456789J.__add__(0b1011.bit_length())
+x = 0XB1ACC.conjugate()
+x = 0B1011.conjugate()
+x = 0O777.real
x = 0xB1ACC.conjugate()
x = 0b1011.conjugate()
x = 0o777.real
-x = (0.000000006).hex()
-x = -100.0000j
+x = 0.000000006.hex()
+x = -100.0000J
@ -91,9 +88,9 @@ x = 123456789.123456789E123456789.real
x = 123456789E123456789.conjugate()
x = 123456789J.real
x = 123456789.123456789J.__add__(0b1011.bit_length())
x = 0XB1ACC.conjugate()
x = 0B1011.conjugate()
x = 0O777.real
x = 0xB1ACC.conjugate()
x = 0b1011.conjugate()
x = 0o777.real
x = 0.000000006.hex()
x = -100.0000J