X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=tests%2Foption%2Fhandles_string_value.cpp;h=7f9099d42e8936d6c9eec353579d168600d24e66;hb=a62cd661611b4c90b5ebe70f6f466f04a7f98684;hp=574b5c5adfe7ed5d8a4a6d44cab6c508ee9b8aa2;hpb=43d4552e59f8870279de2b6b3a62ce16c72bb872;p=command.git diff --git a/tests/option/handles_string_value.cpp b/tests/option/handles_string_value.cpp index 574b5c5..7f9099d 100644 --- a/tests/option/handles_string_value.cpp +++ b/tests/option/handles_string_value.cpp @@ -9,7 +9,7 @@ using namespace command; #define NAME "test" #define VALUE "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" -#define OPTION NAME"="VALUE +#define OPTION NAME "=" VALUE typedef std::string OptionType; @@ -26,14 +26,14 @@ int main() { option.handle(); } else { - cout << "Option class do not understand string values\n"; + cout << option.describe() << " do not understand string values\n"; return 1; } int cmp = strcmp(test.c_str(), VALUE); if (cmp == 0) { - cout << "Option class handles string values\n"; + cout << option.describe() << " handles string values\n"; return 0; }