Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72196 - sandbox/property/libs/property/test
From: eldiener_at_[hidden]
Date: 2011-05-26 17:41:37


Author: eldiener
Date: 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
New Revision: 72196
URL: http://svn.boost.org/trac/boost/changeset/72196

Log:
Testing updates.
Text files modified:
   sandbox/property/libs/property/test/test_auto_predicate.cpp | 23 +++++++++++++++++++++++
   sandbox/property/libs/property/test/test_auto_value.cpp | 38 ++++++++++++++++++++++++++++++++++++++
   sandbox/property/libs/property/test/test_callable_value.cpp | 38 ++++++++++++++++++++++++++++++++++++++
   sandbox/property/libs/property/test/test_data_predicate.cpp | 23 +++++++++++++++++++++++
   sandbox/property/libs/property/test/test_data_value.cpp | 38 ++++++++++++++++++++++++++++++++++++++
   sandbox/property/libs/property/test/test_function_value.cpp | 38 ++++++++++++++++++++++++++++++++++++++
   sandbox/property/libs/property/test/test_functor_value.cpp | 37 +++++++++++++++++++++++++++++++++++++
   sandbox/property/libs/property/test/test_global_data.cpp | 11 +++++++++--
   sandbox/property/libs/property/test/test_global_data.hpp | 8 ++++++++
   sandbox/property/libs/property/test/test_member_data_predicate.cpp | 23 +++++++++++++++++++++++
   sandbox/property/libs/property/test/test_member_data_value.cpp | 38 ++++++++++++++++++++++++++++++++++++++
   sandbox/property/libs/property/test/test_member_function_value.cpp | 38 ++++++++++++++++++++++++++++++++++++++
   12 files changed, 351 insertions(+), 2 deletions(-)

Modified: sandbox/property/libs/property/test/test_auto_predicate.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_auto_predicate.cpp (original)
+++ sandbox/property/libs/property/test/test_auto_predicate.cpp 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
@@ -22,9 +22,32 @@
 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);
 
+void TestCharacter(p_auto_predicate_class & tcl)
+ {
+ }
+
+void TestInt(p_auto_predicate_class & tcl)
+ {
+ }
+
+void TestDouble(p_auto_predicate_class & tcl)
+ {
+ }
+
+void TestEnum(p_auto_predicate_class & tcl)
+ {
+ }
+
 int main()
   {
   
+ p_auto_predicate_class tcl;
+
+ TestCharacter(tcl);
+ TestInt(tcl);
+ TestDouble(tcl);
+ TestEnum(tcl);
+
   return boost::report_errors();
   
   }

Modified: sandbox/property/libs/property/test/test_auto_value.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_auto_value.cpp (original)
+++ sandbox/property/libs/property/test/test_auto_value.cpp 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
@@ -25,9 +25,47 @@
 prop_auto<test_enum,notification_boost_function> p_auto_value_class::p_st_enum_ntf;
 prop_auto<test_pod const> p_auto_value_class::p_st_pod_const(test_pod('y',45,32.6,true));
 
+void TestCharacter(p_auto_value_class & tcl)
+ {
+ }
+
+void TestInt(p_auto_value_class & tcl)
+ {
+ }
+
+void TestDouble(p_auto_value_class & tcl)
+ {
+ }
+
+void TestBool(p_auto_value_class & tcl)
+ {
+ }
+
+void TestPointer(p_auto_value_class & tcl)
+ {
+ }
+
+void TestEnum(p_auto_value_class & tcl)
+ {
+ }
+
+void TestPod(p_auto_value_class & tcl)
+ {
+ }
+
 int main()
   {
   
+ p_auto_value_class tcl;
+
+ TestCharacter(tcl);
+ TestInt(tcl);
+ TestDouble(tcl);
+ TestBool(tcl);
+ TestPointer(tcl);
+ TestEnum(tcl);
+ TestPod(tcl);
+
   return boost::report_errors();
   
   }

Modified: sandbox/property/libs/property/test/test_callable_value.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_callable_value.cpp (original)
+++ sandbox/property/libs/property/test/test_callable_value.cpp 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
@@ -71,9 +71,47 @@
   (boost::bind(&p_member_function_impl_class::p_function_pod_read,&p_member_function_impl_object))
   );
   
+void TestCharacter(p_callable_value_class & tcl)
+ {
+ }
+
+void TestInt(p_callable_value_class & tcl)
+ {
+ }
+
+void TestDouble(p_callable_value_class & tcl)
+ {
+ }
+
+void TestBool(p_callable_value_class & tcl)
+ {
+ }
+
+void TestPointer(p_callable_value_class & tcl)
+ {
+ }
+
+void TestEnum(p_callable_value_class & tcl)
+ {
+ }
+
+void TestPod(p_callable_value_class & tcl)
+ {
+ }
+
 int main()
   {
   
+ p_callable_value_class tcl;
+
+ TestCharacter(tcl);
+ TestInt(tcl);
+ TestDouble(tcl);
+ TestBool(tcl);
+ TestPointer(tcl);
+ TestEnum(tcl);
+ TestPod(tcl);
+
   return boost::report_errors();
   
   }

Modified: sandbox/property/libs/property/test/test_data_predicate.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_data_predicate.cpp (original)
+++ sandbox/property/libs/property/test/test_data_predicate.cpp 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
@@ -22,9 +22,32 @@
 prop_data_predicate<double,&p_data_class::p_double_2,default_policy_tag,predicate_failure_runtime_exception> p_data_predicate_class::p_st_double_pred_err(_1 <= 5000.0);
 prop_data_predicate<test_enum,&p_data_class::p_enum_2,notification_boost_function> p_data_predicate_class::p_st_enum_pred_ntf(_1 != e_test_third);
 
+void TestCharacter(p_data_predicate_class & tcl)
+ {
+ }
+
+void TestInt(p_data_predicate_class & tcl)
+ {
+ }
+
+void TestDouble(p_data_predicate_class & tcl)
+ {
+ }
+
+void TestEnum(p_data_predicate_class & tcl)
+ {
+ }
+
 int main()
   {
   
+ p_data_predicate_class tcl;
+
+ TestCharacter(tcl);
+ TestInt(tcl);
+ TestDouble(tcl);
+ TestEnum(tcl);
+
   return boost::report_errors();
   
   }

Modified: sandbox/property/libs/property/test/test_data_value.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_data_value.cpp (original)
+++ sandbox/property/libs/property/test/test_data_value.cpp 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
@@ -22,9 +22,47 @@
 prop_data<test_enum,&gld_enum> p_data_value_class::p_st_enum;
 prop_data<test_pod const,&p_data_class::p_pod_2> p_data_value_class::p_st_pod_const;
 
+void TestCharacter(p_data_value_class & tcl)
+ {
+ }
+
+void TestInt(p_data_value_class & tcl)
+ {
+ }
+
+void TestDouble(p_data_value_class & tcl)
+ {
+ }
+
+void TestBool(p_data_value_class & tcl)
+ {
+ }
+
+void TestPointer(p_data_value_class & tcl)
+ {
+ }
+
+void TestEnum(p_data_value_class & tcl)
+ {
+ }
+
+void TestPod(p_data_value_class & tcl)
+ {
+ }
+
 int main()
   {
   
+ p_data_value_class tcl;
+
+ TestCharacter(tcl);
+ TestInt(tcl);
+ TestDouble(tcl);
+ TestBool(tcl);
+ TestPointer(tcl);
+ TestEnum(tcl);
+ TestPod(tcl);
+
   return boost::report_errors();
   
   }

Modified: sandbox/property/libs/property/test/test_function_value.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_function_value.cpp (original)
+++ sandbox/property/libs/property/test/test_function_value.cpp 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
@@ -22,9 +22,47 @@
 prop_read_function<test_enum,&p_function_enum_read> p_function_value_class::p_st_enum_const;
 prop_write_function<test_pod,&p_function_class::p_pod_write> p_function_value_class::p_st_pod_write;
 
+void TestCharacter(p_function_value_class & tcl)
+ {
+ }
+
+void TestInt(p_function_value_class & tcl)
+ {
+ }
+
+void TestDouble(p_function_value_class & tcl)
+ {
+ }
+
+void TestBool(p_function_value_class & tcl)
+ {
+ }
+
+void TestPointer(p_function_value_class & tcl)
+ {
+ }
+
+void TestEnum(p_function_value_class & tcl)
+ {
+ }
+
+void TestPod(p_function_value_class & tcl)
+ {
+ }
+
 int main()
   {
   
+ p_function_value_class tcl;
+
+ TestCharacter(tcl);
+ TestInt(tcl);
+ TestDouble(tcl);
+ TestBool(tcl);
+ TestPointer(tcl);
+ TestEnum(tcl);
+ TestPod(tcl);
+
   return boost::report_errors();
   
   }

Modified: sandbox/property/libs/property/test/test_functor_value.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_functor_value.cpp (original)
+++ sandbox/property/libs/property/test/test_functor_value.cpp 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
@@ -34,10 +34,47 @@
 prop_functor<test_pod,p_functor_class_pod,write_tag> p_functor_value_class::p_st_pod_write(pf_st_pod);
 int p_functor_value_class::pvalue(801);
 
+void TestCharacter(p_functor_value_class & tcl)
+ {
+ }
+
+void TestInt(p_functor_value_class & tcl)
+ {
+ }
+
+void TestDouble(p_functor_value_class & tcl)
+ {
+ }
+
+void TestBool(p_functor_value_class & tcl)
+ {
+ }
+
+void TestPointer(p_functor_value_class & tcl)
+ {
+ }
+
+void TestEnum(p_functor_value_class & tcl)
+ {
+ }
+
+void TestPod(p_functor_value_class & tcl)
+ {
+ }
 
 int main()
   {
   
+ p_functor_value_class tcl;
+
+ TestCharacter(tcl);
+ TestInt(tcl);
+ TestDouble(tcl);
+ TestBool(tcl);
+ TestPointer(tcl);
+ TestEnum(tcl);
+ TestPod(tcl);
+
   return boost::report_errors();
   
   }

Modified: sandbox/property/libs/property/test/test_global_data.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_global_data.cpp (original)
+++ sandbox/property/libs/property/test/test_global_data.cpp 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
@@ -1,5 +1,4 @@
-#include "test_enum.hpp"
-#include "test_pod.hpp"
+#include "test_global_data.hpp"
 
 char gld_char(' ');
 int gld_int(0);
@@ -8,3 +7,11 @@
 int * gld_pointer(0);
 test_enum gld_enum(e_test_default);
 test_pod gld_pod;
+
+char gld_char2('0');
+int gld_int2(1000);
+double gld_double2(3.1416);
+bool gld_bool2(true);
+int * gld_pointer2(0);
+test_enum gld_enum2(e_test_third);
+test_pod gld_pod2((test_pod('*',565,2.045,true)));

Modified: sandbox/property/libs/property/test/test_global_data.hpp
==============================================================================
--- sandbox/property/libs/property/test/test_global_data.hpp (original)
+++ sandbox/property/libs/property/test/test_global_data.hpp 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
@@ -12,4 +12,12 @@
 extern test_enum gld_enum;
 extern test_pod gld_pod;
 
+extern char gld_char2;
+extern int gld_int2;
+extern double gld_double2;
+extern bool gld_bool2;
+extern int * gld_pointer2;
+extern test_enum gld_enum2;
+extern test_pod gld_pod2;
+
 #endif

Modified: sandbox/property/libs/property/test/test_member_data_predicate.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_member_data_predicate.cpp (original)
+++ sandbox/property/libs/property/test/test_member_data_predicate.cpp 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
@@ -22,9 +22,32 @@
 prop_member_data_predicate<double,p_member_data_class,&p_member_data_class::p_double_2,default_policy_tag,predicate_failure_runtime_exception> p_member_data_predicate_class::p_st_double_pred_err(_1 <= 5.0,pmd_st_double);
 prop_member_data_predicate<test_enum,p_member_data_class,&p_member_data_class::p_enum_2,notification_boost_function> p_member_data_predicate_class::p_st_enum_pred_ntf(_1 != e_test_second,pmd_st_enum);
 
+void TestCharacter(p_member_data_predicate_class & tcl)
+ {
+ }
+
+void TestInt(p_member_data_predicate_class & tcl)
+ {
+ }
+
+void TestDouble(p_member_data_predicate_class & tcl)
+ {
+ }
+
+void TestEnum(p_member_data_predicate_class & tcl)
+ {
+ }
+
 int main()
   {
   
+ p_member_data_predicate_class tcl;
+
+ TestCharacter(tcl);
+ TestInt(tcl);
+ TestDouble(tcl);
+ TestEnum(tcl);
+
   return boost::report_errors();
   
   }

Modified: sandbox/property/libs/property/test/test_member_data_value.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_member_data_value.cpp (original)
+++ sandbox/property/libs/property/test/test_member_data_value.cpp 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
@@ -28,9 +28,47 @@
 prop_member_data<test_enum,p_member_data_class,&p_member_data_class::p_enum,default_policy_tag,read_tag> p_member_data_value_class::p_st_enum_const(pmd_st_enum);
 prop_member_data<test_pod,p_member_data_class,&p_member_data_class::p_pod> p_member_data_value_class::p_st_pod(pmd_st_pod);
 
+void TestCharacter(p_member_data_value_class & tcl)
+ {
+ }
+
+void TestInt(p_member_data_value_class & tcl)
+ {
+ }
+
+void TestDouble(p_member_data_value_class & tcl)
+ {
+ }
+
+void TestBool(p_member_data_value_class & tcl)
+ {
+ }
+
+void TestPointer(p_member_data_value_class & tcl)
+ {
+ }
+
+void TestEnum(p_member_data_value_class & tcl)
+ {
+ }
+
+void TestPod(p_member_data_value_class & tcl)
+ {
+ }
+
 int main()
   {
   
+ p_member_data_value_class tcl;
+
+ TestCharacter(tcl);
+ TestInt(tcl);
+ TestDouble(tcl);
+ TestBool(tcl);
+ TestPointer(tcl);
+ TestEnum(tcl);
+ TestPod(tcl);
+
   return boost::report_errors();
   
   }

Modified: sandbox/property/libs/property/test/test_member_function_value.cpp
==============================================================================
--- sandbox/property/libs/property/test/test_member_function_value.cpp (original)
+++ sandbox/property/libs/property/test/test_member_function_value.cpp 2011-05-26 17:41:36 EDT (Thu, 26 May 2011)
@@ -29,9 +29,47 @@
 prop_read_member_function<test_enum,p_member_function_impl_class,&p_member_function_impl_class::p_function_enum_read> p_member_function_value_class::p_st_enum_const(pmf_st_enum);
 prop_write_member_function<test_pod,p_member_function_impl_class,&p_member_function_impl_class::p_pod_write> p_member_function_value_class::p_st_pod_write(pmf_st_pod);
 
+void TestCharacter(p_member_function_value_class & tcl)
+ {
+ }
+
+void TestInt(p_member_function_value_class & tcl)
+ {
+ }
+
+void TestDouble(p_member_function_value_class & tcl)
+ {
+ }
+
+void TestBool(p_member_function_value_class & tcl)
+ {
+ }
+
+void TestPointer(p_member_function_value_class & tcl)
+ {
+ }
+
+void TestEnum(p_member_function_value_class & tcl)
+ {
+ }
+
+void TestPod(p_member_function_value_class & tcl)
+ {
+ }
+
 int main()
   {
   
+ p_member_function_value_class tcl;
+
+ TestCharacter(tcl);
+ TestInt(tcl);
+ TestDouble(tcl);
+ TestBool(tcl);
+ TestPointer(tcl);
+ TestEnum(tcl);
+ TestPod(tcl);
+
   return boost::report_errors();
   
   }


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