Minor optimization

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

No files matched your search

+4 -13
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;
}