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
Move tests to their directories. Add unsigned int Option test.
[command.git]
/
tests
/
command
/
src
/
option_test_command.cpp
diff --git
a/tests/command/src/option_test_command.cpp
b/tests/command/src/option_test_command.cpp
index 312d4aadfcbb214bccb3f1a55e1d6bb886252c94..b4c92f00b612da5a3ae2ca897079c02449f54c98 100644
(file)
--- a/
tests/command/src/option_test_command.cpp
+++ b/
tests/command/src/option_test_command.cpp
@@
-26,6
+26,9
@@
int main(int argc, char *argv[]) {
new Option<int>("int", "int Test", [](int i) {
std::cout << "int: " << i << std::endl;
}),
new Option<int>("int", "int Test", [](int i) {
std::cout << "int: " << i << std::endl;
}),
+ new Option<unsigned int>("unsigned-int", "unsigned int Test", [](unsigned int i) {
+ std::cout << "unsigned int: " << i << std::endl;
+ }),
new Option<float>("float", "float Test", [](float f) {
std::cout << "float: " << f << std::endl;
}),
new Option<float>("float", "float Test", [](float f) {
std::cout << "float: " << f << std::endl;
}),