dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
command.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Option tests.
[command.git]
/
tests
/
option
/
handles_string_value.cpp
diff --git
a/tests/option/handles_string_value.cpp
b/tests/option/handles_string_value.cpp
index 574b5c5adfe7ed5d8a4a6d44cab6c508ee9b8aa2..4b276ec6844235fb7bb742ff85f565a19f56eb46 100644
(file)
--- a/
tests/option/handles_string_value.cpp
+++ b/
tests/option/handles_string_value.cpp
@@
-26,14
+26,14
@@
int main() {
option.handle();
}
else {
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) {
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;
}
return 0;
}