aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tests/testSignals.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/tests/testSignals.cc b/src/tests/testSignals.cc
index 9b9d151..d316a62 100644
--- a/src/tests/testSignals.cc
+++ b/src/tests/testSignals.cc
@@ -3,9 +3,6 @@ using namespace std;
3 3
4#include "../FbTk/Signal.hh" 4#include "../FbTk/Signal.hh"
5#include "../FbTk/MemFun.hh" 5#include "../FbTk/MemFun.hh"
6#include "../FbTk/RelaySignal.hh"
7#include "../FbTk/Observer.hh"
8#include "../FbTk/Subject.hh"
9 6
10#include <string> 7#include <string>
11 8
@@ -154,26 +151,6 @@ int main() {
154 2.9); 151 2.9);
155 152
156 } 153 }
157 // Test relay new signals to old
158 {
159 cout << "---------- Testing relay of signals" << endl;
160 struct Observer: public FbTk::Observer {
161 void update(FbTk::Subject* subj) {
162 cout << "Observer called." << endl;
163 }
164 };
165 // setup old subject->observer listening
166 FbTk::Subject destination;
167 Observer obs;
168 destination.attach(&obs);
169 // create a new signal and relay it to the
170 // old subject
171 FbTk::Signal<string> source;
172 FbTk::relaySignal(source, destination);
173 // the new signal should now make the old
174 // subject notify its observers
175 source.emit("hello world");
176 }
177 154
178 // Test argument selector 155 // Test argument selector
179 { 156 {