Skip to content

Commit

Permalink
Forgot to swap in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brenthuisman committed Aug 15, 2023
1 parent 3d9573d commit febf44d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/unit/test_model_desc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,56 +172,56 @@ TEST(model_desc, connections) {
md.get_connections(0, conns);
EXPECT_EQ(1, conns.size());
EXPECT_EQ(5,conns[0].source.gid);
EXPECT_EQ("synapse@"+arb::cell_tag_type{"0"},conns[0].source.label.tag);
EXPECT_EQ("detector@"+arb::cell_tag_type{"0"},conns[0].source.label.tag);
// EXPECT_EQ(0,conns[0].dest.gid);
EXPECT_EQ("detector@"+arb::cell_tag_type{"0"},conns[0].target.tag);
EXPECT_EQ("synapse@"+arb::cell_tag_type{"0"},conns[0].target.tag);
EXPECT_NEAR(0.01,conns[0].weight,1e-5);
EXPECT_NEAR(0.1,conns[0].delay,1e-5);

conns.clear();
md.get_connections(1, conns);
EXPECT_EQ(1, conns.size());
EXPECT_EQ(4,conns[0].source.gid);
EXPECT_EQ("synapse@"+arb::cell_tag_type{"0"},conns[0].source.label.tag);
EXPECT_EQ("detector@"+arb::cell_tag_type{"0"},conns[0].source.label.tag);
// EXPECT_EQ(1,conns[0].dest.gid);
EXPECT_EQ("detector@"+arb::cell_tag_type{"0"},conns[0].target.tag);
EXPECT_EQ("synapse@"+arb::cell_tag_type{"0"},conns[0].target.tag);
EXPECT_NEAR(-0.02,conns[0].weight,1e-5);
EXPECT_NEAR(0.1,conns[0].delay,1e-5);

conns.clear();
md.get_connections(2, conns);
EXPECT_EQ(1, conns.size());
EXPECT_EQ(5,conns[0].source.gid);
EXPECT_EQ("synapse@"+arb::cell_tag_type{"0"},conns[0].source.label.tag);
EXPECT_EQ("detector@"+arb::cell_tag_type{"0"},conns[0].source.label.tag);
// EXPECT_EQ(2,conns[0].dest.gid);
EXPECT_EQ("detector@"+arb::cell_tag_type{"0"},conns[0].target.tag);
EXPECT_EQ("synapse@"+arb::cell_tag_type{"0"},conns[0].target.tag);
EXPECT_NEAR(0.01,conns[0].weight,1e-5);
EXPECT_NEAR(0.1,conns[0].delay,1e-5);

conns.clear();
md.get_connections(3, conns);
EXPECT_EQ(1, conns.size());
EXPECT_EQ(1,conns[0].source.gid);
EXPECT_EQ("synapse@"+arb::cell_tag_type{"0"},conns[0].source.label.tag);
EXPECT_EQ("detector@"+arb::cell_tag_type{"0"},conns[0].source.label.tag);
// EXPECT_EQ(3,conns[0].dest.gid);
EXPECT_EQ("detector@"+arb::cell_tag_type{"0"},conns[0].target.tag);
EXPECT_EQ("synapse@"+arb::cell_tag_type{"0"},conns[0].target.tag);
EXPECT_NEAR(0.05,conns[0].weight,1e-5);
EXPECT_NEAR(0.2,conns[0].delay,1e-5);

conns.clear();
md.get_connections(4, conns);
EXPECT_EQ(2, conns.size());
EXPECT_EQ(0,conns[0].source.gid);
EXPECT_EQ("synapse@"+arb::cell_tag_type{"0"},conns[0].source.label.tag);
EXPECT_EQ("detector@"+arb::cell_tag_type{"0"},conns[0].source.label.tag);
// EXPECT_EQ(4,conns[0].dest.gid);
EXPECT_EQ("detector@"+arb::cell_tag_type{"0"},conns[0].target.tag);
EXPECT_EQ("synapse@"+arb::cell_tag_type{"0"},conns[0].target.tag);
EXPECT_NEAR(0.0235,conns[0].weight,1e-5);
EXPECT_NEAR(0.3,conns[0].delay,1e-5);

EXPECT_EQ(2,conns[1].source.gid);
EXPECT_EQ("synapse@"+arb::cell_tag_type{"0"},conns[1].source.label.tag);
EXPECT_EQ("detector@"+arb::cell_tag_type{"0"},conns[1].source.label.tag);
// EXPECT_EQ(4,conns[1].dest.gid);
EXPECT_EQ("detector@"+arb::cell_tag_type{"1"},conns[1].target.tag);
EXPECT_EQ("synapse@"+arb::cell_tag_type{"1"},conns[1].target.tag);
EXPECT_NEAR(0.04,conns[1].weight,1e-5);
EXPECT_NEAR(0.3,conns[1].delay,1e-5);

Expand Down

0 comments on commit febf44d

Please sign in to comment.