arpadboda commented on a change in pull request #472: MINIFICPP-710 - Fix 
errors in Property StringToInt conversion
URL: https://github.com/apache/nifi-minifi-cpp/pull/472#discussion_r247311989
 
 

 ##########
 File path: libminifi/test/unit/PropertyTests.cpp
 ##########
 @@ -107,3 +107,28 @@ TEST_CASE("Test Trimmer Left", "[testTrims]") {
   REQUIRE(test.c_str()[1] == ' ');
 }
 
+TEST_CASE("Test int conversion", "[testStringToInt]") {
+  using org::apache::nifi::minifi::core::Property;
+
+  uint64_t uint64_var = 0;
+  REQUIRE(Property::StringToInt("-2", uint64_var) == false);  // Negative 
shouldn't be converted to uint
 
 Review comment:
   Sure, let's focus on the long term solution.
   
   Just scratched this as I spotted errors in the code, however as you 
correctly pointed out, my change doesn't include the integration approach. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to