Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 11, 2024
1 parent ddc5198 commit e74050d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/HealthGPS.Tests/AnalysisModule.Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ class TestAnalysisModule : public ::testing::Test {

// Let's set some ages for the population.
// We will create a pair of male and female persons with sequential ages
for (size_t i = 0, j=15; i < context.population().size(); i=i+2, j++) {
for (size_t i = 0, j = 15; i < context.population().size(); i = i + 2, j++) {
context.population()[i].age = j;
context.population()[i + 1].age = j;
}

// Let's set half the population gender to male, and the other half to female
for (size_t i = 0; i < context.population().size(); i=i+2) {
for (size_t i = 0; i < context.population().size(); i = i + 2) {
context.population()[i].gender = core::Gender::male;
context.population()[i+1].gender = core::Gender::female;
context.population()[i + 1].gender = core::Gender::female;
}

// For each person, we need to set the risk factors which we can get from channels_
Expand All @@ -78,8 +78,8 @@ TEST_F(TestAnalysisModule, CalculateIndex) {
size_t index_1 = analysis_module->calculate_index(test_person_1);
size_t index_2 = analysis_module->calculate_index(test_person_2);

ASSERT_EQ(index_1, 7*87);
ASSERT_EQ(index_2, 10*87);
ASSERT_EQ(index_1, 7 * 87);
ASSERT_EQ(index_2, 10 * 87);
}

} // namespace hgps

0 comments on commit e74050d

Please sign in to comment.