TESTS = \
descriptive_holds_data.test \
callable_invokes_provided_function.test \
+ callable_invokes_void_function.test \
parameter_is_descriptive.test \
argument_handles_string_value.test \
argument_handles_int_value.test \
descriptive_holds_data_test_SOURCES = descriptive/holds_data.cpp
callable_invokes_provided_function_test_SOURCES = callable/invokes_provided_function.cpp
+callable_invokes_void_function_test_SOURCES = callable/invokes_void_function.cpp
parameter_is_descriptive_test_SOURCES = parameter/is_descriptive.cpp
--- /dev/null
+#include <cstring>
+#include <iostream>
+
+#include "TestCallable.h"
+#include "callable.h"
+
+using namespace std;
+using namespace command;
+
+bool test = false;
+
+void function(void) {
+ test = true;
+};
+
+int main() {
+ TestCallable<void> callable(function);
+ callable.callFunction();
+
+ if (test == true) {
+ cout << "Callable class calls provided function\n";
+ return 0;
+ }
+
+ cout << "Callable class does not call provided function\n";
+
+ return 1;
+}
+