Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
qcor
Commits
0d633560
Commit
0d633560
authored
Nov 12, 2019
by
Mccaskey, Alex
Browse files
fixing qcor ast visitor tester
Signed-off-by:
Alex Mccaskey
<
mccaskeyaj@ornl.gov
>
parent
aa85ac98
Pipeline
#79797
failed with stage
in 4 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
compiler/tests/QCORASTVisitorTester.in.cpp
View file @
0d633560
...
...
@@ -33,9 +33,8 @@ int main() {
TEST
(
QCORASTVisitorTester
,
checkSimple
)
{
Rewriter
rewriter1
;
xacc
::
setAccelerator
(
"dummy"
);
auto
action1
=
new
QCORFrontendAction
(
rewriter1
,
"temp.cpp"
);
std
::
vector
<
std
::
string
>
args
{
"-std=c++14"
};
auto
action1
=
new
QCORFrontendAction
(
rewriter1
,
"temp.cpp"
,
args
);
const
std
::
string
bell
=
R"bell(#include <vector>
using qbit = std::vector<int>;
int main() {
...
...
@@ -134,8 +133,8 @@ return ss.str();
TEST
(
QCORASTVisitorTester
,
checkParamAnsatzDouble
)
{
Rewriter
rewriter1
;
xacc
::
setAccelerator
(
"dummy"
);
auto
action1
=
new
QCORFrontendAction
(
rewriter1
,
"temp.cpp"
);
std
::
vector
<
std
::
string
>
args
{
"-std=c++14"
};
auto
action1
=
new
QCORFrontendAction
(
rewriter1
,
"temp.cpp"
,
args
);
const
std
::
string
bell
=
R"bell(#include <vector>
using qbit = std::vector<int>;
...
...
@@ -256,8 +255,8 @@ return ss.str();
TEST
(
QCORASTVisitorTester
,
checkParamAnsatzVectorDouble
)
{
Rewriter
rewriter1
;
xacc
::
setAccelerator
(
"dummy"
);
auto
action1
=
new
QCORFrontendAction
(
rewriter1
,
"temp.cpp"
);
std
::
vector
<
std
::
string
>
args
{
"-std=c++14"
};
auto
action1
=
new
QCORFrontendAction
(
rewriter1
,
"temp.cpp"
,
args
);
const
std
::
string
bell
=
R"bell(#include <vector>
using qbit = std::vector<int>;
...
...
@@ -912,4 +911,4 @@ int main(int argc, char **argv) {
::
testing
::
InitGoogleTest
(
&
argc
,
argv
);
auto
ret
=
RUN_ALL_TESTS
();
return
ret
;
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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