Minor optimization

This commit is contained in:
Leonetienne
2021-06-05 12:29:59 +02:00
parent 5efc4d5533
commit 275ce060f0
6 changed files with 27 additions and 23 deletions

View File

@@ -112,20 +112,11 @@ namespace TestHazelnupp
}
, L"Float32");
Assert::ExpectException<HazelnuppValueNotConvertibleException>(
[ptnupp]
{
(*ptnupp)["--pud"].GetString();
}
, L"String");
Assert::ExpectException<HazelnuppValueNotConvertibleException>(
[ptnupp]
{
(*ptnupp)["--pud"].GetList();
}
, L"List");
// Expect empty string
Assert::AreEqual(std::string(), nupp["--pud"].GetString(), L"String");
// Expect empty list
Assert::AreEqual(std::size_t(0), nupp["--pud"].GetList().size(), L"List");
return;
}