diff --git a/src/cell_tree.hpp b/src/cell_tree.hpp index e6ba5b2e9dcb4c19e1708bf7d87554f47cfb5f94..0d4c496f459821c59caa80319d1536bba71b3671 100644 --- a/src/cell_tree.hpp +++ b/src/cell_tree.hpp @@ -122,15 +122,15 @@ class cell_tree { std::ofstream fid(fname); - fid << "graph cell {" << std::endl; + fid << "graph cell {" << '\n'; for(auto b : range(0,num_segments())) { if(children(b).size()) { for(auto c : children(b)) { - fid << " " << b << " -- " << c << ";" << std::endl; + fid << " " << b << " -- " << c << ";" << '\n'; } } } - fid << "}" << std::endl; + fid << "}" << std::endl; // flush at end of output? } index_type depth_from_leaf() diff --git a/tests/test_swcio.cpp b/tests/test_swcio.cpp index 3c88661f61e926731255c4382987e601cb78a443..5a11a5ed214e884d0e5da248ba2fff2abcaac4b2 100644 --- a/tests/test_swcio.cpp +++ b/tests/test_swcio.cpp @@ -5,7 +5,7 @@ #include "gtest.h" -#include "../src/swcio.hpp" +#include <swcio.hpp> // SWC tests void expect_cell_equals(const neuron::io::cell_record &expected, @@ -187,7 +187,7 @@ TEST(swc_parser, from_allen_db) auto fname = "../data/example.swc"; std::ifstream fid(fname); if(!fid.is_open()) { - std::cerr << "unable to open file " << fname << "... skipping test" << std::endl; + std::cerr << "unable to open file " << fname << "... skipping test\n"; return; } diff --git a/tests/test_tree.cpp b/tests/test_tree.cpp index a0bd0742cdcf6041b80847bd1c5fd2b064a44d52..58435e15240344665921799dbf07ff8eca211f5c 100644 --- a/tests/test_tree.cpp +++ b/tests/test_tree.cpp @@ -5,7 +5,7 @@ #include "gtest.h" -#include "../src/cell_tree.hpp" +#include <cell_tree.hpp> #include "json/src/json.hpp" using json = nlohmann::json;