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 7086411 commit e70e3c8Copy full SHA for e70e3c8
tests/signal-ptr.cpp
@@ -297,3 +297,19 @@ BOOST_AUTO_TEST_CASE(plug_signal_string) {
297
std::cout << "res=" << res << std::endl;
298
BOOST_CHECK(res == str);
299
}
300
+
301
+BOOST_AUTO_TEST_CASE(set_signal_string) {
302
+ Signal<std::string, int> s("signal");
303
+ std::string str("");
304
+ std::ostringstream os;
305
+ os << str;
306
+ std::istringstream value(os.str());
307
+ try {
308
+ s.set(value);
309
+ }
310
+ catch(const std::exception& exc)
311
+ {
312
+ std::cout << exc.what() << std::endl;
313
+ BOOST_CHECK(!"Tentative to set signal to empty string");
314
315
+}
0 commit comments