|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r70652 - in sandbox/opaque/libs/opaque/test: . new_class
From: vicente.botet_at_[hidden]
Date: 2011-03-27 18:05:01
Author: viboes
Date: 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
New Revision: 70652
URL: http://svn.boost.org/trac/boost/changeset/70652
Log:
Opaque: cleanup
Text files modified:
sandbox/opaque/libs/opaque/test/Jamfile.v2 | 3 ++
sandbox/opaque/libs/opaque/test/new_class/using_divide_pass.cpp | 41 ---------------------------------------
sandbox/opaque/libs/opaque/test/new_class/using_equal_pass.cpp | 40 ---------------------------------------
sandbox/opaque/libs/opaque/test/new_class/using_greater_than_pass.cpp | 40 ---------------------------------------
sandbox/opaque/libs/opaque/test/new_class/using_less_than_equal_pass.cpp | 41 ----------------------------------------
sandbox/opaque/libs/opaque/test/new_class/using_less_than_pass.cpp | 41 ----------------------------------------
sandbox/opaque/libs/opaque/test/new_class/using_minus_assign_pass.cpp | 39 --------------------------------------
sandbox/opaque/libs/opaque/test/new_class/using_multiply_assign_pass.cpp | 40 ---------------------------------------
sandbox/opaque/libs/opaque/test/new_class/using_multiply_pass.cpp | 40 ---------------------------------------
sandbox/opaque/libs/opaque/test/new_class/using_not_equal_pass.cpp | 37 ------------------------------------
sandbox/opaque/libs/opaque/test/new_class/using_plus_assign_pass.cpp | 40 ---------------------------------------
sandbox/opaque/libs/opaque/test/new_class/using_plus_pass.cpp | 40 ---------------------------------------
12 files changed, 4 insertions(+), 438 deletions(-)
Modified: sandbox/opaque/libs/opaque/test/Jamfile.v2
==============================================================================
--- sandbox/opaque/libs/opaque/test/Jamfile.v2 (original)
+++ sandbox/opaque/libs/opaque/test/Jamfile.v2 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
@@ -25,15 +25,18 @@
<toolset>gcc:<cxxflags>-Wextra
<toolset>gcc:<cxxflags>-pedantic
<toolset>gcc:<cxxflags>-Wno-long-long
+ <toolset>gcc:<cxxflags>-Wno-non-template-friend
<toolset>darwin:<cxxflags>-Wextra
<toolset>darwin:<cxxflags>-pedantic
<toolset>darwin:<cxxflags>-Wno-long-long
+ <toolset>darwin:<cxxflags>-Wno-non-template-friend
#<toolset>pathscale:<cxxflags>-Wextra
<toolset>pathscale:<cxxflags>-Wno-long-long
<toolset>pathscale:<cxxflags>-pedantic
<toolset>clang:<cxxflags>-Wextra
<toolset>clang:<cxxflags>-pedantic
<toolset>clang:<cxxflags>-Wno-long-long
+ <toolset>clang:<cxxflags>-Wno-non-template-friend
<toolset>gcc-mingw-4.5.0:<cxxflags>-Wno-missing-field-initializers
<toolset>gcc-mingw-4.5.0:<cxxflags>-fdiagnostics-show-option
<toolset>msvc:<cxxflags>/wd4127
Modified: sandbox/opaque/libs/opaque/test/new_class/using_divide_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_divide_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_divide_pass.cpp 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
@@ -1,3 +1,4 @@
+
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Vicente J. Botet Escriba 2010. Distributed under the Boost
@@ -49,39 +50,7 @@
void size_test() {
BOOST_TEST(sizeof(NT)==sizeof(UT));
}
-#if 0
-void default_constructor_test() {
- NT a;
-}
-void copy_from_ut_test() {
- UT ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_from_ut2_test() {
- UT2 ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_constructor_test() {
- NT a(1);
- NT b(a);
- BOOST_TEST(a.underlying()==b.underlying());
-}
-
-void assign_test() {
- NT a1, a2(2);
- a1=a2; // OK
- BOOST_TEST(a1.underlying()==a2.underlying());
-}
-void opaque_static_cast_test() {
- NT a(1);
- UT2 i;
- i=opaque_static_cast<UT2>(a);
- BOOST_TEST(i==a.underlying());
-}
-#endif
void divide_test() {
NT a2(2), b3(3), c6(6);
a2 = c6 / b3;
@@ -92,14 +61,6 @@
{
size_test();
-#if 0
- default_constructor_test();
- copy_from_ut_test();
- copy_from_ut2_test();
- copy_constructor_test();
- assign_test();
- opaque_static_cast_test();
-#endif
divide_test();
return boost::report_errors();
Modified: sandbox/opaque/libs/opaque/test/new_class/using_equal_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_equal_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_equal_pass.cpp 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
@@ -49,39 +49,7 @@
void size_test() {
BOOST_TEST(sizeof(NT)==sizeof(UT));
}
-#if 0
-void default_constructor_test() {
- NT a;
-}
-void copy_from_ut_test() {
- UT ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_from_ut2_test() {
- UT2 ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_constructor_test() {
- NT a(1);
- NT b(a);
- BOOST_TEST(a.underlying()==b.underlying());
-}
-void assign_test() {
- NT a1, a2(2);
- a1=a2; // OK
- BOOST_TEST(a1.underlying()==a2.underlying());
-}
-
-void opaque_static_cast_test() {
- NT a(1);
- UT2 i;
- i=opaque_static_cast<UT2>(a);
- BOOST_TEST(i==a.underlying());
-}
-#endif
void equal_test() {
NT a1(1), b2(2), c2(2);
BOOST_TEST(b2==c2);
@@ -92,14 +60,6 @@
{
size_test();
-#if 0
- default_constructor_test();
- copy_from_ut_test();
- copy_from_ut2_test();
- copy_constructor_test();
- assign_test();
- opaque_static_cast_test();
-#endif
equal_test();
return boost::report_errors();
Modified: sandbox/opaque/libs/opaque/test/new_class/using_greater_than_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_greater_than_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_greater_than_pass.cpp 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
@@ -49,39 +49,7 @@
void size_test() {
BOOST_TEST(sizeof(NT)==sizeof(UT));
}
-#if 0
-void default_constructor_test() {
- NT a;
-}
-void copy_from_ut_test() {
- UT ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_from_ut2_test() {
- UT2 ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_constructor_test() {
- NT a(1);
- NT b(a);
- BOOST_TEST(a.underlying()==b.underlying());
-}
-void assign_test() {
- NT a1, a2(2);
- a1=a2; // OK
- BOOST_TEST(a1.underlying()==a2.underlying());
-}
-
-void opaque_static_cast_test() {
- NT a(1);
- UT2 i;
- i=opaque_static_cast<UT2>(a);
- BOOST_TEST(i==a.underlying());
-}
-#endif
void greater_than_test() {
NT a1(1), b2(2), c2(2);
BOOST_TEST(b2>a1);
@@ -93,14 +61,6 @@
{
size_test();
-#if 0
- default_constructor_test);
- copy_from_ut_test();
- copy_from_ut2_test();
- copy_constructor_test();
- assign_test();
- opaque_static_cast_test();
-#endif
greater_than_test();
return boost::report_errors();
Modified: sandbox/opaque/libs/opaque/test/new_class/using_less_than_equal_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_less_than_equal_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_less_than_equal_pass.cpp 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
@@ -49,39 +49,6 @@
void size_test() {
BOOST_TEST(sizeof(NT)==sizeof(UT));
}
-#if 0
-void default_constructor_test() {
- NT a;
-}
-void copy_from_ut_test() {
- UT ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_from_ut2_test() {
- UT2 ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_constructor_test() {
- NT a(1);
- NT b(a);
- BOOST_TEST(a.underlying()==b.underlying());
-}
-
-void assign_test() {
- NT a1, a2(2);
- a1=a2; // OK
- BOOST_TEST(a1.underlying()==a2.underlying());
-}
-
-void opaque_static_cast_test() {
- NT a(1);
- UT2 i;
- i=opaque_static_cast<UT2>(a);
- BOOST_TEST(i==a.underlying());
-}
-#endif
void less_than_equal_test() {
NT a1(1), b2(2), c2(2);
BOOST_TEST(a1<=b2);
@@ -93,14 +60,6 @@
{
size_test();
-#if 0
- default_constructor_test();
- copy_from_ut_test();
- copy_from_ut2_test();
- copy_constructor_test();
- assign_test();
- opaque_static_cast_test();
-#endif
less_than_equal_test();
return boost::report_errors();
Modified: sandbox/opaque/libs/opaque/test/new_class/using_less_than_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_less_than_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_less_than_pass.cpp 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
@@ -49,39 +49,6 @@
void size_test() {
BOOST_TEST(sizeof(NT)==sizeof(UT));
}
-#if 0
-void default_constructor_test() {
- NT a;
-}
-void copy_from_ut_test() {
- UT ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_from_ut2_test() {
- UT2 ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_constructor_test() {
- NT a(1);
- NT b(a);
- BOOST_TEST(a.underlying()==b.underlying());
-}
-
-void assign_test() {
- NT a1, a2(2);
- a1=a2; // OK
- BOOST_TEST(a1.underlying()==a2.underlying());
-}
-
-void opaque_static_cast_test() {
- NT a(1);
- UT2 i;
- i=opaque_static_cast<UT2>(a);
- BOOST_TEST(i==a.underlying());
-}
-#endif
void less_than_test() {
NT a1(1), b2(2), c2(2);
BOOST_TEST(a1<b2);
@@ -93,14 +60,6 @@
{
size_test();
-#if 0
- default_constructor_test();
- copy_from_ut_test();
- copy_from_ut2_test();
- copy_constructor_test();
- assign_test();
- opaque_static_cast_test();
-#endif
less_than_test();
return boost::report_errors();
Modified: sandbox/opaque/libs/opaque/test/new_class/using_minus_assign_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_minus_assign_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_minus_assign_pass.cpp 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
@@ -49,39 +49,8 @@
void size_test() {
BOOST_TEST(sizeof(NT)==sizeof(UT));
}
-#if 1
-void default_constructor_test() {
- NT a;
-}
-void copy_from_ut_test() {
- UT ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_from_ut2_test() {
- UT2 ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_constructor_test() {
- NT a(1);
- NT b(a);
- BOOST_TEST(a.underlying()==b.underlying());
-}
-void assign_test() {
- NT a1, a2(2);
- a1=a2; // OK
- BOOST_TEST(a1.underlying()==a2.underlying());
-}
-void opaque_static_cast_test() {
- NT a(1);
- UT2 i;
- i=opaque_static_cast<UT2>(a);
- BOOST_TEST(i==a.underlying());
-}
-#endif
void minus_assign_test() {
NT a1(1), b2(2), c2(2);
a1-=b2;
@@ -92,14 +61,6 @@
{
size_test();
-#if 1
- default_constructor_test();
- copy_from_ut_test();
- copy_from_ut2_test();
- copy_constructor_test();
- assign_test();
- opaque_static_cast_test();
-#endif
minus_assign_test();
Modified: sandbox/opaque/libs/opaque/test/new_class/using_multiply_assign_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_multiply_assign_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_multiply_assign_pass.cpp 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
@@ -49,39 +49,7 @@
void size_test() {
BOOST_TEST(sizeof(NT)==sizeof(UT));
}
-#if 0
-void default_constructor_test() {
- NT a;
-}
-void copy_from_ut_test() {
- UT ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_from_ut2_test() {
- UT2 ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_constructor_test() {
- NT a(1);
- NT b(a);
- BOOST_TEST(a.underlying()==b.underlying());
-}
-void assign_test() {
- NT a1, a2(2);
- a1=a2; // OK
- BOOST_TEST(a1.underlying()==a2.underlying());
-}
-
-void opaque_static_cast_test() {
- NT a(1);
- UT2 i;
- i=opaque_static_cast<UT2>(a);
- BOOST_TEST(i==a.underlying());
-}
-#endif
void multiply_assign_test() {
NT a1(2), b2(3);
a1 *= b2;
@@ -92,14 +60,6 @@
{
size_test();
-#if 0
- default_constructor_test();
- copy_from_ut_test();
- copy_from_ut2_test();
- copy_constructor_test();
- assign_test();
- opaque_static_cast_test();
-#endif
multiply_assign_test();
return boost::report_errors();
Modified: sandbox/opaque/libs/opaque/test/new_class/using_multiply_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_multiply_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_multiply_pass.cpp 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
@@ -49,39 +49,7 @@
void size_test() {
BOOST_TEST(sizeof(NT)==sizeof(UT));
}
-#if 0
-void default_constructor_test() {
- NT a;
-}
-void copy_from_ut_test() {
- UT ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_from_ut2_test() {
- UT2 ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_constructor_test() {
- NT a(1);
- NT b(a);
- BOOST_TEST(a.underlying()==b.underlying());
-}
-void assign_test() {
- NT a1, a2(2);
- a1=a2; // OK
- BOOST_TEST(a1.underlying()==a2.underlying());
-}
-
-void opaque_static_cast_test() {
- NT a(1);
- UT2 i;
- i=opaque_static_cast<UT2>(a);
- BOOST_TEST(i==a.underlying());
-}
-#endif
void multiply_test() {
NT a2(2), b3(3), c6(2);
c6 = a2 * b3;
@@ -92,14 +60,6 @@
{
size_test();
-#if 0
- default_constructor_test();
- copy_from_ut_test();
- copy_from_ut2_test();
- copy_constructor_test();
- assign_test();
- opaque_static_cast_test();
-#endif
multiply_test();
return boost::report_errors();
Modified: sandbox/opaque/libs/opaque/test/new_class/using_not_equal_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_not_equal_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_not_equal_pass.cpp 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
@@ -59,37 +59,6 @@
BOOST_TEST(sizeof(NT)==sizeof(UT));
}
-void default_constructor_test() {
- NT a;
-}
-void copy_from_ut_test() {
- UT ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_from_ut2_test() {
- UT2 ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_constructor_test() {
- NT a(1);
- NT b(a);
- BOOST_TEST(a.underlying()==b.underlying());
-}
-
-void assign_test() {
- NT a1, a2(2);
- a1=a2; // OK
- BOOST_TEST(a1.underlying()==a2.underlying());
-}
-
-void opaque_static_cast_test() {
- NT a(1);
- UT2 i;
- i=opaque_static_cast<UT2>(a);
- BOOST_TEST(i==a.underlying());
-}
void not_equal_test() {
NT a1(1), b2(2), c2(2);
@@ -101,12 +70,6 @@
{
size_test();
- default_constructor_test();
- copy_from_ut_test();
- copy_from_ut2_test();
- copy_constructor_test();
- assign_test();
- opaque_static_cast_test();
not_equal_test();
return boost::report_errors();
Modified: sandbox/opaque/libs/opaque/test/new_class/using_plus_assign_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_plus_assign_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_plus_assign_pass.cpp 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
@@ -49,39 +49,7 @@
void size_test() {
BOOST_TEST(sizeof(NT)==sizeof(UT));
}
-#if 0
-void default_constructor_test() {
- NT a;
-}
-void copy_from_ut_test() {
- UT ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_from_ut2_test() {
- UT2 ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_constructor_test() {
- NT a(1);
- NT b(a);
- BOOST_TEST(a.underlying()==b.underlying());
-}
-void assign_test() {
- NT a1, a2(2);
- a1=a2; // OK
- BOOST_TEST(a1.underlying()==a2.underlying());
-}
-
-void opaque_static_cast_test() {
- NT a(1);
- UT2 i;
- i=opaque_static_cast<UT2>(a);
- BOOST_TEST(i==a.underlying());
-}
-#endif
void plus_assign_test() {
NT a1(1), b2(2), c2(2);
a1+=b2;
@@ -91,14 +59,6 @@
int main()
{
size_test();
-#if 0
- default_constructor_test();
- copy_from_ut_test();
- copy_from_ut2_test();
- copy_constructor_test();
- assign_test();
- opaque_static_cast_test();
-#endif
plus_assign_test();
return boost::report_errors();
Modified: sandbox/opaque/libs/opaque/test/new_class/using_plus_pass.cpp
==============================================================================
--- sandbox/opaque/libs/opaque/test/new_class/using_plus_pass.cpp (original)
+++ sandbox/opaque/libs/opaque/test/new_class/using_plus_pass.cpp 2011-03-27 18:04:59 EDT (Sun, 27 Mar 2011)
@@ -49,39 +49,7 @@
void size_test() {
BOOST_TEST(sizeof(NT)==sizeof(UT));
}
-#if 0
-void default_constructor_test() {
- NT a;
-}
-void copy_from_ut_test() {
- UT ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_from_ut2_test() {
- UT2 ut(1);
- NT a(ut);
- BOOST_TEST(a.underlying()==ut);
-}
-void copy_constructor_test() {
- NT a(1);
- NT b(a);
- BOOST_TEST(a.underlying()==b.underlying());
-}
-void assign_test() {
- NT a1, a2(2);
- a1=a2; // OK
- BOOST_TEST(a1.underlying()==a2.underlying());
-}
-
-void opaque_static_cast_test() {
- NT a(1);
- UT2 i;
- i=opaque_static_cast<UT2>(a);
- BOOST_TEST(i==a.underlying());
-}
-#endif
void plus_test() {
NT a2, b3(3), c6(6);
a2 = c6 + b3;
@@ -92,14 +60,6 @@
{
size_test();
-#if 0
- default_constructor_test();
- copy_from_ut_test();
- copy_from_ut2_test();
- copy_constructor_test();
- assign_test();
- opaque_static_cast_test();
-#endif
plus_test();
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