We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 109409f commit 931d226Copy full SHA for 931d226
tests/test_signal.cc
@@ -48,6 +48,15 @@ void test_empty_signal()
48
util->check_result(result_stream, "");
49
}
50
51
+void test_simple()
52
+{
53
+ sigc::signal<int, int> sig;
54
+ sig.connect(sigc::ptr_fun(&foo));
55
+
56
+ sig(1);
57
+ util->check_result(result_stream, "foo(int 1) ");
58
+}
59
60
int bar(float i)
61
{
62
result_stream << "bar(float " << i << ") ";
@@ -112,6 +121,7 @@ int main(int argc, char* argv[])
112
121
return util->get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE;
113
122
114
123
test_empty_signal();
124
+ test_simple();
115
125
test_auto_disconnection();
116
126
test_reference();
117
127
test_make_slot();
0 commit comments