Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dssp
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
dssp
Commits
4fdaafea
Unverified
Commit
4fdaafea
authored
Aug 31, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unit test (BOOST_ASSERT is really an assert...)
parent
36afd7e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
test/unit-test.cpp
+5
-4
No files found.
test/unit-test.cpp
View file @
4fdaafea
...
...
@@ -54,15 +54,16 @@ BOOST_AUTO_TEST_CASE(ut_dssp)
writeDSSP
(
structure
,
dssp
,
test
);
std
::
ifstream
reference
(
"1cbs.dssp"
);
std
::
ifstream
reference
(
"1cbs.dssp"
,
std
::
ios
::
binary
);
BOOST_
ASSERT
(
reference
.
is_open
());
BOOST_
CHECK
(
reference
.
is_open
());
std
::
string
line_t
,
line_r
;
BOOST_
ASSERT
(
std
::
getline
(
test
,
line_t
)
and
std
::
getline
(
reference
,
line_r
));
BOOST_
CHECK
(
std
::
getline
(
test
,
line_t
)
and
std
::
getline
(
reference
,
line_r
));
const
char
*
kHeaderLineStart
=
"==== Secondary Structure Definition by the program DSSP, NKI version 4.0 ===="
;
BOOST_ASSERT
(
line_t
.
compare
(
0
,
std
::
strlen
(
kHeaderLineStart
),
kHeaderLineStart
)
==
0
);
BOOST_CHECK
(
line_t
.
compare
(
0
,
std
::
strlen
(
kHeaderLineStart
),
kHeaderLineStart
)
==
0
);
BOOST_CHECK
(
line_r
.
compare
(
0
,
std
::
strlen
(
kHeaderLineStart
),
kHeaderLineStart
)
==
0
);
for
(
int
line_nr
=
2
;
;
++
line_nr
)
{
...
...
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