Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
e1826044
Unverified
Commit
e1826044
authored
Oct 13, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix all tests to work with embedded data, no CCD, part 4
parent
45a7defb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/CifUtils.cpp
+3
-0
test/unit-test.cpp
+0
-2
No files found.
src/CifUtils.cpp
View file @
e1826044
...
@@ -1243,6 +1243,9 @@ void addDataDirectory(std::filesystem::path dataDir)
...
@@ -1243,6 +1243,9 @@ void addDataDirectory(std::filesystem::path dataDir)
void
addFileResource
(
const
std
::
string
&
name
,
std
::
filesystem
::
path
dataFile
)
void
addFileResource
(
const
std
::
string
&
name
,
std
::
filesystem
::
path
dataFile
)
{
{
if
(
not
fs
::
exists
(
dataFile
))
throw
std
::
runtime_error
(
"Attempt to add a file resource for "
+
name
+
" that does not exist: "
+
dataFile
.
string
());
gLocalResources
[
name
]
=
dataFile
;
gLocalResources
[
name
]
=
dataFile
;
}
}
...
...
test/unit-test.cpp
View file @
e1826044
...
@@ -1532,8 +1532,6 @@ BOOST_AUTO_TEST_CASE(bondmap_1)
...
@@ -1532,8 +1532,6 @@ BOOST_AUTO_TEST_CASE(bondmap_1)
{
{
cif
::
VERBOSE
=
2
;
cif
::
VERBOSE
=
2
;
cif
::
addFileResource
(
"components.cif"
,
gTestDir
/
".."
/
"data"
/
"components.cif"
);
// sections taken from CCD compounds.cif
// sections taken from CCD compounds.cif
auto
components
=
R"(
auto
components
=
R"(
data_ASN
data_ASN
...
...
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