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 Argument boolean tests.
[command.git]
/
tests
/
argument
/
handles_int_value.cpp
diff --git
a/tests/argument/handles_int_value.cpp
b/tests/argument/handles_int_value.cpp
index 552a2e35e30d114bcde6145c3d258ab036dc65fa..ffe130c83cd30549951f3ab306424d41bc65f800 100644
(file)
--- a/
tests/argument/handles_int_value.cpp
+++ b/
tests/argument/handles_int_value.cpp
@@
-22,6
+22,10
@@
int main() {
if (argument.understand(VALUE)) {
argument.handle();
}
+ else {
+ cout << "Argument class do not understand int values\n";
+ return 1;
+ }
if (test == std::stoi(VALUE)) {
cout << "Argument class handles int values\n";