diff --git a/tests/test_cases/runtime/test_device_agent_creation.cu b/tests/test_cases/runtime/test_device_agent_creation.cu index 81a0adac7..7110f4faf 100644 --- a/tests/test_cases/runtime/test_device_agent_creation.cu +++ b/tests/test_cases/runtime/test_device_agent_creation.cu @@ -753,7 +753,7 @@ TEST(DeviceAgentCreationTest, Optional_Output_SameState_WithAgentFunctionConditi EXPECT_EQ(population_b.size(), AGENT_COUNT / 2 + AGENT_COUNT / 4); unsigned int is_1 = 0; for (AgentVector::Agent ai : population_a) { - if (ai.getVariable("x") - ai.getVariable("id"), 1.0f) { + if (ai.getVariable("x") - ai.getVariable("id") == 1.0f) { is_1++; ASSERT_EQ(ai.getVariable("id") % 2, 1u); }