Test: fix license unit test
This commit is contained in:
@@ -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/");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user