mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
extra_tests/snippets/{builtins => builtin_eval}.py
This commit is contained in:
1 parent
443835096b
commit
4192e5de2d
2 files changed
+4
-13
No files matched your search
@@ -0,0 +1,4 @@
|
||||
assert 3 == eval('1+2')
|
||||
|
||||
code = compile('5+3', 'x.py', 'eval')
|
||||
assert eval(code) == 8
|
||||
@@ -1,13 +0,0 @@
|
||||
x = sum(map(int, ['1', '2', '3']))
|
||||
assert x == 6
|
||||
|
||||
assert callable(type)
|
||||
# TODO:
|
||||
# assert callable(callable)
|
||||
|
||||
assert type(frozenset) is type
|
||||
|
||||
assert 3 == eval('1+2')
|
||||
|
||||
code = compile('5+3', 'x.py', 'eval')
|
||||
assert eval(code) == 8
|
||||
Reference in new issue
Block a user