Add some tests.
[command.git] / tests / callable / TestCallable.h
1 #include "callable.h"
2
3 using namespace command;
4
5 template<typename ArgumentType>
6 class TestCallable : public Callable<ArgumentType> {
7 public:
8     TestCallable(void (*function)(ArgumentType))
9         : Callable<ArgumentType>(function) {
10     }
11
12     void callFunction(ArgumentType test) {
13         this->call(test);
14     }
15 };