Skip to content

Commit 9d90ea2

Browse files
committed
Test fix: , vs ==
1 parent 39640ab commit 9d90ea2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_cases/runtime/test_device_agent_creation.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ TEST(DeviceAgentCreationTest, Optional_Output_SameState_WithAgentFunctionConditi
753753
EXPECT_EQ(population_b.size(), AGENT_COUNT / 2 + AGENT_COUNT / 4);
754754
unsigned int is_1 = 0;
755755
for (AgentVector::Agent ai : population_a) {
756-
if (ai.getVariable<float>("x") - ai.getVariable<unsigned int>("id"), 1.0f) {
756+
if (ai.getVariable<float>("x") - ai.getVariable<unsigned int>("id") == 1.0f) {
757757
is_1++;
758758
ASSERT_EQ(ai.getVariable<unsigned int>("id") % 2, 1u);
759759
}

0 commit comments

Comments
 (0)