Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Merge requests
!518
rm node visitor
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
rm node visitor
rmNodeVisitor
into
develop
Overview
0
Commits
5
Pipelines
26
Changes
1
Merged
Wuttke, Joachim
requested to merge
rmNodeVisitor
into
develop
3 years ago
Overview
0
Commits
5
Pipelines
26
Changes
1
Expand
0
0
Merge request reports
Viewing commit
5a5df80f
Show latest version
1 file
+
5
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
5a5df80f
Export: additional export
· 5a5df80f
Wuttke, Joachim
authored
3 years ago
Tests/Functional/PyEmbedded/Tests.cpp
+
5
−
1
Options
@@ -376,6 +376,10 @@ TEST_F(PyEmbedded, ExportToPythonAndBack)
const
std
::
string
code
=
Py
::
Export
::
sampleCode
(
*
sample
);
std
::
cout
<<
"Test(ExportToPythonAndBack): have code:
\n
"
<<
code
<<
std
::
endl
;
const
std
::
string
code2
=
Py
::
Export
::
sampleCode
(
*
sample
);
std
::
cout
<<
"Test(ExportToPythonAndBack): have code2:
\n
"
<<
code2
<<
std
::
endl
;
EXPECT_TRUE
(
code2
==
code
);
const
std
::
string
snippet
=
"import bornagain as ba
\n
"
+
Py
::
Fmt
::
printImportedSymbols
(
code
)
+
"
\n\n
"
+
code
;
std
::
cout
<<
"Test(ExportToPythonAndBack): have snippet"
<<
std
::
endl
;
@@ -387,7 +391,7 @@ TEST_F(PyEmbedded, ExportToPythonAndBack)
const
std
::
string
new_code
=
Py
::
Export
::
sampleCode
(
*
multilayer
);
std
::
cout
<<
"Test(ExportToPythonAndBack): code from cloned sample:
\n
"
<<
code
<<
std
::
endl
;
EXPECT_TRUE
(
code
==
new_
code
);
EXPECT_TRUE
(
new_
code
==
code
);
}
//! Retrieves list of functions from the imported script and checks, that there is
Loading