X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=tests%2Fargument%2Fhandles_float_value.cpp;h=f757a84f1e7c20e63a2b6261654c8fd3798bdcd9;hb=bba2a7fd86db452c2d9a1668ee649f6d4d51a581;hp=93ff14f11484cad3b7108a99c110496a7a043249;hpb=4d3ba3307820eed7fab532abd2d35e24359b5a51;p=command.git diff --git a/tests/argument/handles_float_value.cpp b/tests/argument/handles_float_value.cpp index 93ff14f..f757a84 100644 --- a/tests/argument/handles_float_value.cpp +++ b/tests/argument/handles_float_value.cpp @@ -11,23 +11,23 @@ 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 float", _function); if (argument.understand(VALUE)) { argument.handle(); } else { - cout << "Argument class do not understand float values\n"; + cout << argument.describe() << " do not understand float values\n"; return 1; } if (test == std::stof(VALUE)) { - cout << "Argument class handles float values\n"; + cout << argument.describe() << " handles float values\n"; return 0; }