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
f0677aad
Commit
f0677aad
authored
Nov 13, 2019
by
Mccaskey, Alex
Browse files
fixing qcor test bug
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
0d633560
Pipeline
#79872
passed with stage
in 4 minutes and 43 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
compiler/tests/QCORASTVisitorTester.in.cpp
View file @
f0677aad
...
...
@@ -33,7 +33,7 @@ int main() {
TEST
(
QCORASTVisitorTester
,
checkSimple
)
{
Rewriter
rewriter1
;
xacc
::
setAccelerator
(
"dummy"
);
std
::
vector
<
std
::
string
>
args
{
"-std=c++14"
};
std
::
vector
<
std
::
string
>
args
{
"-std=c++14"
,
"-I@CMAKE_INSTALL_PREFIX@/include/xacc"
};
auto
action1
=
new
QCORFrontendAction
(
rewriter1
,
"temp.cpp"
,
args
);
const
std
::
string
bell
=
R"bell(#include <vector>
using qbit = std::vector<int>;
...
...
@@ -133,7 +133,7 @@ return ss.str();
TEST
(
QCORASTVisitorTester
,
checkParamAnsatzDouble
)
{
Rewriter
rewriter1
;
xacc
::
setAccelerator
(
"dummy"
);
std
::
vector
<
std
::
string
>
args
{
"-std=c++14"
};
std
::
vector
<
std
::
string
>
args
{
"-std=c++14"
,
"-I@CMAKE_INSTALL_PREFIX@/include/xacc"
};
auto
action1
=
new
QCORFrontendAction
(
rewriter1
,
"temp.cpp"
,
args
);
const
std
::
string
bell
=
R"bell(#include <vector>
...
...
@@ -255,7 +255,7 @@ return ss.str();
TEST
(
QCORASTVisitorTester
,
checkParamAnsatzVectorDouble
)
{
Rewriter
rewriter1
;
xacc
::
setAccelerator
(
"dummy"
);
std
::
vector
<
std
::
string
>
args
{
"-std=c++14"
};
std
::
vector
<
std
::
string
>
args
{
"-std=c++14"
,
"-I@CMAKE_INSTALL_PREFIX@/include/xacc"
};
auto
action1
=
new
QCORFrontendAction
(
rewriter1
,
"temp.cpp"
,
args
);
const
std
::
string
bell
=
R"bell(#include <vector>
...
...
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