Add some tests.
[command.git] / tests / callable / TestCallable.h
diff --git a/tests/callable/TestCallable.h b/tests/callable/TestCallable.h
new file mode 100644 (file)
index 0000000..097e115
--- /dev/null
@@ -0,0 +1,15 @@
+#include "callable.h"
+
+using namespace command;
+
+template<typename ArgumentType>
+class TestCallable : public Callable<ArgumentType> {
+public:
+    TestCallable(void (*function)(ArgumentType))
+        : Callable<ArgumentType>(function) {
+    }
+
+    void callFunction(ArgumentType test) {
+        this->call(test);
+    }
+};