mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Test integer literals
This commit is contained in:
1 parent
7f8217472e
commit
f9124f41a8
1 file changed
+8
@@ -0,0 +1,8 @@
|
||||
# Integer literals
|
||||
assert 0b101010 == 42
|
||||
assert 0B101010 == 42
|
||||
assert 0o777 == 511
|
||||
assert 0O777 == 511
|
||||
assert 0xcafebabe == 3405691582
|
||||
assert 0Xcafebabe == 3405691582
|
||||
assert 0xCAFEBABE == 3405691582
|
||||
Reference in new issue
Block a user