MCPcopy Create free account
hub / github.com/chrxh/alien / TEST_F

Function TEST_F

source/EngineTests/SimulationParametersEditServiceTests.cpp:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16};
17
18TEST_F(SimulationParametersEditServiceTests, getRadiationStrengths)
19{
20 SimulationParameters parameters;
21 parameters.numRadiationSources = 2;
22 parameters.radiationSources[0].strength = 0.3f;
23 parameters.radiationSources[1].strength = 0.6f;
24
25 auto strengths = SimulationParametersEditService::get().getRadiationStrengths(parameters);
26
27 checkApproxEqual(0.1f, strengths.values[0]);
28}
29
30TEST_F(SimulationParametersEditServiceTests, applyRadiationStrengthValues)
31{

Callers

nothing calls this directly

Calls 4

getRadiationStrengthsMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected