Test: fix license unit test

This commit is contained in:
wmayer
2023-03-10 20:54:52 +01:00
committed by Uwe
parent 1dc9f5484f
commit da98cfc4d1

View File

@@ -17,7 +17,7 @@ TEST(License, direct)
{
int posn {App::findLicense("CC_BY_40")};
App::TLicenseArr tt {
"CC_BY_40", "Creative Commons Attribution", "https://creativecommons.org/licenses/by/4.0/"};
"CC_BY_40", "Creative Commons Attribution 4.0", "https://creativecommons.org/licenses/by/4.0/"};
EXPECT_EQ(App::licenseItems.at(posn), tt);
}
@@ -26,7 +26,7 @@ TEST(License, findLicenseByIdent)
App::TLicenseArr arr {App::licenseItems.at(App::findLicense("CC_BY_40"))};
EXPECT_STREQ(arr.at(App::posnOfIdentifier), "CC_BY_40");
EXPECT_STREQ(arr.at(App::posnOfFullName), "Creative Commons Attribution");
EXPECT_STREQ(arr.at(App::posnOfFullName), "Creative Commons Attribution 4.0");
EXPECT_STREQ(arr.at(App::posnOfUrl), "https://creativecommons.org/licenses/by/4.0/");
}