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
8d66f42a
Commit
8d66f42a
authored
Apr 17, 2023
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more test cases
parent
c53be784
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
test/4wvp.cif.gz
+0
-0
test/unit-3d-test.cpp
+33
-0
No files found.
test/4wvp.cif.gz
0 → 100644
View file @
8d66f42a
File added
test/unit-3d-test.cpp
View file @
8d66f42a
...
@@ -363,6 +363,39 @@ BOOST_AUTO_TEST_CASE(symm_2bi3_1, *utf::tolerance(0.1f))
...
@@ -363,6 +363,39 @@ BOOST_AUTO_TEST_CASE(symm_2bi3_1, *utf::tolerance(0.1f))
// --------------------------------------------------------------------
// --------------------------------------------------------------------
BOOST_AUTO_TEST_CASE
(
symm_4wvp_1
,
*
utf
::
tolerance
(
0.1
f
))
{
using
namespace
cif
::
literals
;
cif
::
file
f
(
gTestDir
/
"4wvp.cif.gz"
);
auto
&
db
=
f
.
front
();
cif
::
mm
::
structure
s
(
db
);
cif
::
spacegroup
sg
(
db
);
cif
::
cell
c
(
db
);
cif
::
point
p
{
-
78.722
,
98.528
,
11.994
};
auto
a
=
s
.
get_residue
(
"A"
,
10
,
""
).
get_atom_by_atom_id
(
"O"
);
auto
sp1
=
cif
::
symmetry_copy
(
a
.
get_location
(),
sg
,
c
,
"2_565"
_symop
);
BOOST_TEST
(
sp1
.
m_x
==
p
.
m_x
);
BOOST_TEST
(
sp1
.
m_y
==
p
.
m_y
);
BOOST_TEST
(
sp1
.
m_z
==
p
.
m_z
);
const
auto
&
[
d
,
sp
,
so
]
=
cif
::
closest_symmetry_copy
(
sg
,
c
,
p
,
a
.
get_location
());
BOOST_TEST
(
d
<
1
);
}
// --------------------------------------------------------------------
BOOST_AUTO_TEST_CASE
(
eigen_1
,
*
utf
::
tolerance
(
0.1
f
))
BOOST_AUTO_TEST_CASE
(
eigen_1
,
*
utf
::
tolerance
(
0.1
f
))
{
{
cif
::
symmetric_matrix4x4
<
float
>
m
;
cif
::
symmetric_matrix4x4
<
float
>
m
;
...
...
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