Skip to content

Commit

Permalink
Fix broken GetDiseaseInfoMatchesGetDisases test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesturner246 committed Aug 3, 2023
1 parent ad428bb commit f71d951
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/HealthGPS.Tests/Datastore.Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,11 @@ TEST_F(DatastoreTest, GetDiseases) {
TEST_F(DatastoreTest, GetDiseaseInfoMatchesGetDisases) {
auto diseases = manager.get_diseases();
for (auto &item : diseases) {
EXPECT_NO_THROW(manager.get_disease_info(item.code));
auto info = manager.get_disease_info(item.code);
EXPECT_EQ(item.code, info.code);
auto call = [&] {
auto info = manager.get_disease_info(item.code);
EXPECT_EQ(item.code, info.code);
};
EXPECT_NO_THROW(call());
}
}

Expand Down Expand Up @@ -186,8 +188,6 @@ TEST_F(DatastoreTest, RetrieveDeseaseDefinitionIsEmpty) {
}

TEST_F(DatastoreTest, DiseaseRelativeRiskToDisease) {
using namespace hgps::core;

auto asthma = manager.get_disease_info("asthma");
auto diabetes = manager.get_disease_info("diabetes");

Expand Down

0 comments on commit f71d951

Please sign in to comment.