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
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
39e1ffd6
Commit
39e1ffd6
authored
8 years ago
by
Benjamin Cumming
Browse files
Options
Downloads
Patches
Plain Diff
address review comments for PR #22
parent
cf627c8b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/unit/test_fvm_multi.cpp
+4
-11
4 additions, 11 deletions
tests/unit/test_fvm_multi.cpp
with
4 additions
and
11 deletions
tests/unit/test_fvm_multi.cpp
+
4
−
11
View file @
39e1ffd6
...
...
@@ -239,20 +239,13 @@ TEST(fvm_multi, mechanism_indexes)
// iterate over mechanisms and test whether they were assigned to the correct CVs
// TODO : this fails because we do not handle CVs at branching points (including soma) correctly
for
(
auto
&
mech
:
fvcell
.
mechanisms
())
{
auto
const
&
ni
=
mech
->
node_index
();
auto
const
&
n
=
mech
->
node_index
();
std
::
vector
<
unsigned
>
ni
(
n
.
begin
(),
n
.
end
());
if
(
mech
->
name
()
==
"hh"
)
{
EXPECT_EQ
(
ni
.
size
(),
hh_index
.
size
());
// only check index by index if size of index arrays match
if
(
ni
.
size
()
==
hh_index
.
size
())
{
for
(
auto
i
:
util
::
make_span
(
0u
,
ni
.
size
()))
EXPECT_EQ
(
ni
[
i
],
hh_index
[
i
]);
}
EXPECT_EQ
(
ni
,
hh_index
);
}
else
if
(
mech
->
name
()
==
"pas"
)
{
EXPECT_EQ
(
ni
.
size
(),
pas_index
.
size
());
// only check index by index if size of index arrays match
if
(
ni
.
size
()
==
pas_index
.
size
())
{
for
(
auto
i
:
util
::
make_span
(
0u
,
ni
.
size
()))
EXPECT_EQ
(
ni
[
i
],
pas_index
[
i
]);
}
EXPECT_EQ
(
ni
,
pas_index
);
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
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
register
or
sign in
to comment