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 mechanism to understand passed Option without value.
[command.git]
/
tests
/
argument
/
handles_float_value.cpp
diff --git
a/tests/argument/handles_float_value.cpp
b/tests/argument/handles_float_value.cpp
index 3fd86fb9bc8b6021cb63199c1444003ce7cded9b..93ff14f11484cad3b7108a99c110496a7a043249 100644
(file)
--- a/
tests/argument/handles_float_value.cpp
+++ b/
tests/argument/handles_float_value.cpp
@@
-21,6
+21,10
@@
int main() {
if (argument.understand(VALUE)) {
argument.handle();
}
if (argument.understand(VALUE)) {
argument.handle();
}
+ else {
+ cout << "Argument class do not understand float values\n";
+ return 1;
+ }
if (test == std::stof(VALUE)) {
cout << "Argument class handles float values\n";
if (test == std::stof(VALUE)) {
cout << "Argument class handles float values\n";