Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81470492
test_eval.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Sep 6, 06:03
Size
425 B
Mime Type
text/x-python
Expires
Sun, Sep 8, 06:03 (2 d)
Engine
blob
Format
Raw Data
Handle
20578811
Attached To
R9490 Homework_sp4e_Peruzzo_SáezUribe
test_eval.py
View Options
import
os
from
pybind11_tests
import
eval_
as
m
def
test_evals
(
capture
):
with
capture
:
assert
m
.
test_eval_statements
()
assert
capture
==
"Hello World!"
assert
m
.
test_eval
()
assert
m
.
test_eval_single_statement
()
filename
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"test_eval_call.py"
)
assert
m
.
test_eval_file
(
filename
)
assert
m
.
test_eval_failure
()
assert
m
.
test_eval_file_failure
()
Event Timeline
Log In to Comment