#include "catch.hpp" #include #include "brain/neural_network.h" SCENARIO("network is read from istream") { GIVEN("an empty config file") { std::stringstream file; file << "" << std::endl; WHEN ("the network is initialized") { NeuralNetwork network(std::move(file), 1, 2); THEN("the specified number of inputs and outputs are created") { REQUIRE(network.numberOfSensors() == 1); REQUIRE(network.numberOfOutputs() == 2); } } } }