Commit a34b5c46 authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

test: remove warnings

parent cabf72f1
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include <cstdio> #include <cstdio>
static void static void
dot_graph_save(const irt::simulation& sim, std::FILE* os) dot_graph_save(const irt::simulation& /*sim*/, std::FILE* /*os*/)
{ {
using namespace boost::ut; using namespace boost::ut;
...@@ -166,8 +166,8 @@ make_neuron(irt::simulation* sim) noexcept ...@@ -166,8 +166,8 @@ make_neuron(irt::simulation* sim) noexcept
struct synapse struct synapse
make_synapse(irt::simulation* sim, make_synapse(irt::simulation* sim,
long unsigned int source, long unsigned int /*source*/,
long unsigned int target, long unsigned int /*target*/,
irt::model& presynaptic_model, irt::model& presynaptic_model,
int presynaptic_port, int presynaptic_port,
irt::model& postsynaptic_model, irt::model& postsynaptic_model,
...@@ -244,8 +244,10 @@ make_synapse(irt::simulation* sim, ...@@ -244,8 +244,10 @@ make_synapse(irt::simulation* sim,
expect(sim->connect(int_pre, 0, sum_pre, 0) == irt::status::success); expect(sim->connect(int_pre, 0, sum_pre, 0) == irt::status::success);
expect(sim->connect(const_syn, 0, sum_pre, 1) == irt::status::success); expect(sim->connect(const_syn, 0, sum_pre, 1) == irt::status::success);
expect(sim->connect(sum_pre, 0, cross_pre, 1) == irt::status::success); expect(sim->connect(sum_pre, 0, cross_pre, 1) == irt::status::success);
expect(sim->connect(presynaptic_model, presynaptic_port, irt::get_model(cross_pre), 0) == expect(sim->connect(presynaptic_model,
irt::status::success); presynaptic_port,
irt::get_model(cross_pre),
0) == irt::status::success);
expect(sim->connect(quant_post, 0, int_post, 0) == irt::status::success); expect(sim->connect(quant_post, 0, int_post, 0) == irt::status::success);
expect(sim->connect(mult_post, 0, int_post, 1) == irt::status::success); expect(sim->connect(mult_post, 0, int_post, 1) == irt::status::success);
...@@ -257,15 +259,19 @@ make_synapse(irt::simulation* sim, ...@@ -257,15 +259,19 @@ make_synapse(irt::simulation* sim,
expect(sim->connect(int_post, 0, sum_post, 0) == irt::status::success); expect(sim->connect(int_post, 0, sum_post, 0) == irt::status::success);
expect(sim->connect(const_syn, 0, sum_post, 1) == irt::status::success); expect(sim->connect(const_syn, 0, sum_post, 1) == irt::status::success);
expect(sim->connect(sum_post, 0, cross_post, 1) == irt::status::success); expect(sim->connect(sum_post, 0, cross_post, 1) == irt::status::success);
expect(sim->connect(postsynaptic_model, postsynaptic_port, irt::get_model(cross_post), 0) == expect(sim->connect(postsynaptic_model,
irt::status::success); postsynaptic_port,
irt::get_model(cross_post),
expect( 0) == irt::status::success);
sim->connect(presynaptic_model, presynaptic_port, irt::get_model(accumulator_syn), 0) ==
irt::status::success); expect(sim->connect(presynaptic_model,
expect( presynaptic_port,
sim->connect(postsynaptic_model, postsynaptic_port, irt::get_model(accumulator_syn), 1) == irt::get_model(accumulator_syn),
irt::status::success); 0) == irt::status::success);
expect(sim->connect(postsynaptic_model,
postsynaptic_port,
irt::get_model(accumulator_syn),
1) == irt::status::success);
expect(sim->connect(cross_post, 0, accumulator_syn, 2) == expect(sim->connect(cross_post, 0, accumulator_syn, 2) ==
irt::status::success); irt::status::success);
expect(sim->connect(cross_pre, 0, accumulator_syn, 3) == expect(sim->connect(cross_pre, 0, accumulator_syn, 3) ==
...@@ -296,7 +302,8 @@ main() ...@@ -296,7 +302,8 @@ main()
expect(irt::is_success(sim.init(10000lu, 10000lu))); expect(irt::is_success(sim.init(10000lu, 10000lu)));
expect(sim.can_alloc(N + 2u * N * N + 2u * N * N + 4u * N * N + N + 2u * N * N)); expect(sim.can_alloc(N + 2u * N * N + 2u * N * N + 4u * N * N + N +
2u * N * N));
std::vector<struct neuron> neurons; std::vector<struct neuron> neurons;
for (long unsigned int i = 0; i < N; i++) { for (long unsigned int i = 0; i < N; i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment