Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic-graph-python
Commits
fffe7908
Commit
fffe7908
authored
Oct 28, 2019
by
Guilhem Saurel
Browse files
[Tests] interpreter-test: check result, out & err
parent
2d72aca1
Changes
1
Hide whitespace changes
Inline
Side-by-side
unitTesting/interpreter-test.cc
View file @
fffe7908
...
...
@@ -15,8 +15,13 @@ int main(int argc, char** argv) {
for
(
int
i
=
0
;
i
<
numTest
;
++
i
)
{
// correct input
interp
.
python
(
"print('I am the interpreter')"
,
result
,
out
,
err
);
assert
(
out
.
compare
(
"I am the interpreter"
));
assert
(
err
.
length
()
==
0
);
// incorrect input
interp
.
python
(
"print I am the interpreter"
,
result
,
out
,
err
);
assert
(
result
.
length
()
==
0
);
assert
(
out
.
length
()
==
0
);
assert
(
err
.
length
()
>
50
);
}
return
0
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment