Skip to content

Commit

Permalink
Add soma testing
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherioszisis committed Jun 10, 2022
1 parent df6815f commit 48b2449
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_mutable_morphology.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
#include <filesystem>
namespace fs = std::filesystem;

TEST_CASE("soma", "[mutableMorphology]") {

auto morph = morphio::mut::Morphology("data/simple-heterogeneous-neurite.swc");

morph.soma();
morph.soma()->points();
morph.soma()->diameters();

morph.soma()->diameters() = {2., 3., 4.};
}

TEST_CASE("isHeterogeneous", "[mutableMorphology]") {
auto morph = morphio::mut::Morphology("data/simple-heterogeneous-neurite.swc");

Expand Down

0 comments on commit 48b2449

Please sign in to comment.