| 17 | }; |
| 18 | |
| 19 | TEST_F(DataTransferTests, singleCell) |
| 20 | { |
| 21 | DataDescription data; |
| 22 | NeuronDescription neuron; |
| 23 | neuron.weights[2][1] = 1.0f; |
| 24 | data.addCell(CellDescription() |
| 25 | .setId(1) |
| 26 | .setPos({2.0f, 4.0f}) |
| 27 | .setVel({0.5f, 1.0f}) |
| 28 | .setEnergy(100.0f) |
| 29 | .setMaxConnections(1) |
| 30 | .setExecutionOrderNumber(3) |
| 31 | .setAge(1) |
| 32 | .setColor(2) |
| 33 | .setBarrier(true) |
| 34 | .setLivingState(false) |
| 35 | .setInputExecutionOrderNumber(4) |
| 36 | .setConstructionId(3534) |
| 37 | .setOutputBlocked(false) |
| 38 | .setCellFunction(neuron) |
| 39 | .setSignal({1, 0, -1, 0, 0, 0, 0, 0})); |
| 40 | |
| 41 | _simulationFacade->setSimulationData(data); |
| 42 | auto actualData = _simulationFacade->getSimulationData(); |
| 43 | |
| 44 | EXPECT_TRUE(compare(data, actualData)); |
| 45 | } |
| 46 | |
| 47 | TEST_F(DataTransferTests, singleParticle) |
| 48 | { |
nothing calls this directly
no test coverage detected