Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72157 - sandbox/property/libs/property/test
From: eldiener_at_[hidden]
Date: 2011-05-25 10:53:16


Author: eldiener
Date: 2011-05-25 10:53:15 EDT (Wed, 25 May 2011)
New Revision: 72157
URL: http://svn.boost.org/trac/boost/changeset/72157

Log:
Add one more test.
Added:
   sandbox/property/libs/property/test/test_auto_predicate.cpp (contents, props changed)

Added: sandbox/property/libs/property/test/test_auto_predicate.cpp
==============================================================================
--- (empty file)
+++ sandbox/property/libs/property/test/test_auto_predicate.cpp 2011-05-25 10:53:15 EDT (Wed, 25 May 2011)
@@ -0,0 +1,32 @@
+#include <boost/detail/lightweight_test.hpp>
+#include <boost/lambda/lambda.hpp>
+#include "test_auto_predicate.hpp"
+
+using namespace boost::lambda;
+
+prop_auto_predicate<char,notification_boost_function,predicate_failure_runtime_exception> p_gl_char_pred_ntf_err(_1 != 'e');
+prop_auto_predicate<int,notification_boost_function> p_gl_int_pred_ntf(_1 < 100);
+prop_auto_predicate<double,default_policy_tag,predicate_failure_runtime_exception> p_gl_double_pred_err(_1 >= 1.0 && _1 <= 2.0);
+prop_auto_predicate<test_enum> p_gl_enum_pred(_1 != e_test_third);
+
+p_auto_predicate_class::p_auto_predicate_class() :
+ p_char_pred_ntf_err(_1 != 'f'),
+ p_int_pred(_1 >= 10000),
+ p_double_pred_ntf_err(_1 >= 100.0),
+ p_enum_pred_err(_1 != e_test_second)
+ {
+ }
+
+prop_auto_predicate<char> p_auto_predicate_class::p_st_char_pred(_1 != 'g');
+prop_auto_predicate<int,notification_boost_function,predicate_failure_runtime_exception> p_auto_predicate_class::p_st_int_pred_ntf_err(_1 >= 20000);
+prop_auto_predicate<double,default_policy_tag,predicate_failure_runtime_exception> p_auto_predicate_class::p_st_double_pred_err(_1 >= 1000.0);
+prop_auto_predicate<test_enum,notification_boost_function> p_auto_predicate_class::p_st_enum_pred_ntf(_1 != e_test_first);
+
+int main()
+ {
+
+ return boost::report_errors();
+
+ }
+
+#include "test_global_data.cpp"
\ No newline at end of file


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