X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=tests%2Fargument%2Fhandles_negative_float_value.cpp;h=c9e1e8fdb307024e5ede19834cb7e0401f84e3ff;hb=bba2a7fd86db452c2d9a1668ee649f6d4d51a581;hp=0111502e48a1df7e921f46d08625f452f44db159;hpb=4d3ba3307820eed7fab532abd2d35e24359b5a51;p=command.git diff --git a/tests/argument/handles_negative_float_value.cpp b/tests/argument/handles_negative_float_value.cpp index 0111502..c9e1e8f 100644 --- a/tests/argument/handles_negative_float_value.cpp +++ b/tests/argument/handles_negative_float_value.cpp @@ -11,27 +11,27 @@ typedef float ArgumentType; ArgumentType test; -void function(ArgumentType value) { +void _function(ArgumentType value) { test = value; } int main() { - Argument argument("Argument as float", function); + Argument argument("Argument as negative float", _function); if (argument.understand(VALUE)) { argument.handle(); } else { - cout << "Argument class do not understand negative float values\n"; + cout << argument.describe() << " do not understand " << VALUE " value\n"; return 1; } if (test == std::stof(VALUE)) { - cout << "Argument class handles negative float values\n"; + cout << argument.describe() << " handles negative float values\n"; return 0; } - cout << "Argument class do not handle negative float values\n"; + cout << argument.describe() << " do not handle negative float values\n"; return 1; }