Skip to content

Commit

Permalink
Test fix: , vs ==
Browse files Browse the repository at this point in the history
  • Loading branch information
ptheywood committed Oct 21, 2022
1 parent 39640ab commit 9d90ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_cases/runtime/test_device_agent_creation.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>("x") - ai.getVariable<unsigned int>("id"), 1.0f) {
if (ai.getVariable<float>("x") - ai.getVariable<unsigned int>("id") == 1.0f) {
is_1++;
ASSERT_EQ(ai.getVariable<unsigned int>("id") % 2, 1u);
}
Expand Down

0 comments on commit 9d90ea2

Please sign in to comment.