|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56804 - trunk/libs/signals2/test
From: fmhess_at_[hidden]
Date: 2009-10-13 18:04:14
Author: fmhess
Date: 2009-10-13 18:04:13 EDT (Tue, 13 Oct 2009)
New Revision: 56804
URL: http://svn.boost.org/trac/boost/changeset/56804
Log:
Added test for bug reported in ticket #3522, which was
fixed with [56802]. Refs #3522.
Text files modified:
trunk/libs/signals2/test/ordering_test.cpp | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
Modified: trunk/libs/signals2/test/ordering_test.cpp
==============================================================================
--- trunk/libs/signals2/test/ordering_test.cpp (original)
+++ trunk/libs/signals2/test/ordering_test.cpp 2009-10-13 18:04:13 EDT (Tue, 13 Oct 2009)
@@ -61,6 +61,27 @@
}
};
+int return_argument(int x)
+{
+ return x;
+}
+
+void test_group_compare()
+{
+ boost::signals2::signal
+ <
+ int (),
+ boost::signals2::last_value<int>,
+ int,
+ std::greater< int >
+ > sig;
+
+ sig.connect( 1, boost::bind( &return_argument, 1) );
+ sig.connect( 2, boost::bind( &return_argument, 2) );
+
+ BOOST_CHECK(sig() == 1);
+}
+
int test_main(int, char* [])
{
using namespace std;
@@ -100,5 +121,8 @@
BOOST_CHECK(ungrouped1);
BOOST_CHECK(ungrouped2);
BOOST_CHECK(ungrouped3);
+
+ test_group_compare();
+
return 0;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk