Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
76db8a5f
Commit
76db8a5f
authored
Feb 10, 2016
by
Benjamin Cumming
Browse files
Options
Downloads
Patches
Plain Diff
fix signed-unsigned comparison warnings and add <algorithm> for std::sort
parent
b09fb960
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/swcio.cpp
+3
-1
3 additions, 1 deletion
src/swcio.cpp
tests/test_swcio.cpp
+7
-7
7 additions, 7 deletions
tests/test_swcio.cpp
with
10 additions
and
8 deletions
src/swcio.cpp
+
3
−
1
View file @
76db8a5f
#include
<algorithm>
#include
<iomanip>
#include
<map>
#include
<sstream>
#include
<unordered_set>
#include
<swcio.hpp>
namespace
nestmc
...
...
This diff is collapsed.
Click to expand it.
tests/test_swcio.cpp
+
7
−
7
View file @
76db8a5f
...
...
@@ -234,7 +234,7 @@ TEST(swc_parser, input_cleaning)
is
<<
"2 1 14.566132 34.873772 7.857000 0.717830 1
\n
"
;
auto
cells
=
swc_read_cells
(
is
);
EXPECT_EQ
(
2
,
cells
.
size
());
EXPECT_EQ
(
2
u
,
cells
.
size
());
}
{
...
...
@@ -246,7 +246,7 @@ TEST(swc_parser, input_cleaning)
is
<<
"4 1 14.566132 34.873772 7.857000 0.717830 1
\n
"
;
auto
cells
=
swc_read_cells
(
is
);
EXPECT_EQ
(
2
,
cells
.
size
());
EXPECT_EQ
(
2
u
,
cells
.
size
());
}
{
...
...
@@ -259,7 +259,7 @@ TEST(swc_parser, input_cleaning)
std
::
array
<
cell_record
::
id_type
,
4
>
expected_id_list
=
{{
0
,
1
,
2
,
3
}};
auto
cells
=
swc_read_cells
(
is
);
ASSERT_EQ
(
4
,
cells
.
size
());
ASSERT_EQ
(
4
u
,
cells
.
size
());
auto
expected_id
=
expected_id_list
.
cbegin
();
for
(
const
auto
&
c
:
cells
)
{
...
...
@@ -283,7 +283,7 @@ TEST(swc_parser, input_cleaning)
{{
0
,
1
,
2
,
3
,
4
,
5
}};
std
::
array
<
cell_record
::
id_type
,
6
>
expected_parent_list
=
{{
-
1
,
0
,
1
,
1
,
0
,
4
}};
ASSERT_EQ
(
6
,
cells
.
size
());
ASSERT_EQ
(
6
u
,
cells
.
size
());
auto
expected_id
=
expected_id_list
.
cbegin
();
auto
expected_parent
=
expected_parent_list
.
cbegin
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment