X-Git-Url: https://git.dlugolecki.net.pl/?p=command.git;a=blobdiff_plain;f=tests%2Fargument%2Fhandles_negative_float_value.cpp;h=0111502e48a1df7e921f46d08625f452f44db159;hp=0279cac8617dd0a8e704dfc670becb59f5b7271d;hb=4d3ba3307820eed7fab532abd2d35e24359b5a51;hpb=e440905b4cbc8761e62ab645e686ceeada0bb5e6 diff --git a/tests/argument/handles_negative_float_value.cpp b/tests/argument/handles_negative_float_value.cpp index 0279cac..0111502 100644 --- a/tests/argument/handles_negative_float_value.cpp +++ b/tests/argument/handles_negative_float_value.cpp @@ -21,6 +21,10 @@ int main() { if (argument.understand(VALUE)) { argument.handle(); } + else { + cout << "Argument class do not understand negative float values\n"; + return 1; + } if (test == std::stof(VALUE)) { cout << "Argument class handles negative float values\n"; @@ -29,6 +33,5 @@ int main() { cout << "Argument class do not handle negative float values\n"; - return 1; }