|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49642 - sandbox/mpl_ext/libs/mpl_ext/test
From: vicente.botet_at_[hidden]
Date: 2008-11-07 14:26:19
Author: viboes
Date: 2008-11-07 14:26:19 EST (Fri, 07 Nov 2008)
New Revision: 49642
URL: http://svn.boost.org/trac/boost/changeset/49642
Log:
mpl_ext initial version
Added:
sandbox/mpl_ext/libs/mpl_ext/test/Jamfile.v2 (contents, props changed)
sandbox/mpl_ext/libs/mpl_ext/test/test_and_seq.cpp (contents, props changed)
sandbox/mpl_ext/libs/mpl_ext/test/test_or_seq.cpp (contents, props changed)
Added: sandbox/mpl_ext/libs/mpl_ext/test/Jamfile.v2
==============================================================================
--- (empty file)
+++ sandbox/mpl_ext/libs/mpl_ext/test/Jamfile.v2 2008-11-07 14:26:19 EST (Fri, 07 Nov 2008)
@@ -0,0 +1,50 @@
+#
+# Boost.LUID
+# Build script for tests.
+#
+# Copyright (c) 2008 Vicente J. Botet Escriba]
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+
+using testing ;
+
+if ! $(BOOST_ROOT)
+{
+ BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
+}
+
+project :
+ : requirements
+ <include>$(BOOST_ROOT)
+ <include>../../..
+
+# <threading>multi
+ <target-os>cygwin
+# <threadapi>pthread
+ <variant>debug
+
+ # XXX Workaround to fix build problems under Windows.
+# <define>BOOST_DSL_EXPR_PP
+# <define>BOOST_DSL_EXPR_ARITY=8
+# <define>BOOST_PARAMETER_MAX_ARITY=8
+# <define>BOOST_MPL_LIMIT_METAFUNCTION_ARITY=8
+# <define>EXPR
+# <define>SOL2
+# <define>OLD2
+# <define>BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS=yes
+
+ <define>BOOST_TEST_BUILD_INFO
+# <library>/boost/thread//boost_thread/<link>static
+ <library>/boost/test//boost_unit_test_framework/<link>static
+;
+
+#exe helpers
+# : helpers.cpp
+# : <library>$(BOOST_ROOT)//filesystem
+# ;
+
+test-suite and_or_ext :
+ [ compile test_or_seq.cpp : : ]
+ [ compile test_and_seq.cpp : : ]
+ #[ compile inclusion/dsl/include_expr.cpp : : ]
+;
Added: sandbox/mpl_ext/libs/mpl_ext/test/test_and_seq.cpp
==============================================================================
--- (empty file)
+++ sandbox/mpl_ext/libs/mpl_ext/test/test_and_seq.cpp 2008-11-07 14:26:19 EST (Fri, 07 Nov 2008)
@@ -0,0 +1,37 @@
+/* Copyright 2008 Vicente J. Botet Escriba
+ * Distributed under the Boost Software License, Version 1.0.
+ * (See accompanying file LICENSE_1_0.txt or copy at
+ * http://www.boost.org/LICENSE_1_0.txt)
+ *
+ * See http://www.boost.org/libs/luid for library home page.
+ */
+
+#include <boost/mpl_ext/and_seq.hpp>
+#include <boost/static_assert.hpp>
+#include <boost/mpl/vector.hpp>
+#include <boost/mpl/not.hpp>
+#include <boost/mpl/bool.hpp>
+
+
+namespace bldsl = ::boost::mpl_ext;
+using namespace boost::mpl;
+struct unknown;
+
+//____________________________________________________________________________//
+
+BOOST_STATIC_ASSERT((bldsl::and_seq<vector<true_> >::value));
+BOOST_STATIC_ASSERT((bldsl::and_seq<vector<true_, true_> >::value));
+BOOST_STATIC_ASSERT((bldsl::and_seq<vector<true_, true_, true_, true_, true_> >::value));
+BOOST_STATIC_ASSERT((not_<bldsl::and_seq<vector<true_, false_> > >::value));
+BOOST_STATIC_ASSERT((not_<bldsl::and_seq<vector<false_, false_> > >::value));
+BOOST_STATIC_ASSERT((not_<bldsl::and_seq<vector<false_, true_> > >::value));
+BOOST_STATIC_ASSERT((not_<bldsl::and_seq<vector<false_, unknown, false_> > >::value));
+
+
+
+//static void test(void)
+//{
+//}
+
+//____________________________________________________________________________//
+
Added: sandbox/mpl_ext/libs/mpl_ext/test/test_or_seq.cpp
==============================================================================
--- (empty file)
+++ sandbox/mpl_ext/libs/mpl_ext/test/test_or_seq.cpp 2008-11-07 14:26:19 EST (Fri, 07 Nov 2008)
@@ -0,0 +1,39 @@
+/* Copyright 2008 Vicente J. Botet Escriba
+ * Distributed under the Boost Software License, Version 1.0.
+ * (See accompanying file LICENSE_1_0.txt or copy at
+ * http://www.boost.org/LICENSE_1_0.txt)
+ *
+ * See http://www.boost.org/libs/luid for library home page.
+ */
+
+#include <boost/mpl_ext/or_seq.hpp>
+#include <boost/static_assert.hpp>
+#include <boost/mpl/vector.hpp>
+#include <boost/mpl/not.hpp>
+#include <boost/mpl/bool.hpp>
+
+
+namespace bldsl = ::boost::mpl_ext;
+using namespace boost::mpl;
+struct unknown;
+
+//____________________________________________________________________________//
+
+BOOST_STATIC_ASSERT((bldsl::or_seq<vector<true_> >::value));
+BOOST_STATIC_ASSERT((bldsl::or_seq<vector<true_, unknown> >::value));
+BOOST_STATIC_ASSERT((bldsl::or_seq<vector<true_, unknown, unknown> >::value));
+BOOST_STATIC_ASSERT((bldsl::or_seq<vector<true_, true_> >::value));
+BOOST_STATIC_ASSERT((bldsl::or_seq<vector<true_, false_> >::value));
+BOOST_STATIC_ASSERT((bldsl::or_seq<vector<false_, true_> >::value));
+BOOST_STATIC_ASSERT((bldsl::or_seq<vector<false_, false_, false_, true_> >::value));
+BOOST_STATIC_ASSERT((not_<bldsl::or_seq<vector<false_, false_> > >::value));
+BOOST_STATIC_ASSERT((not_<bldsl::or_seq<vector<false_, false_, false_> > >::value));
+
+
+
+//static void test(void)
+//{
+//}
+
+//____________________________________________________________________________//
+
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