|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73479 - sandbox/variadic_macro_data/libs/variadic_macro_data/test
From: eldiener_at_[hidden]
Date: 2011-08-01 13:02:30
Author: eldiener
Date: 2011-08-01 13:02:30 EDT (Mon, 01 Aug 2011)
New Revision: 73479
URL: http://svn.boost.org/trac/boost/changeset/73479
Log:
Add test.
Added:
sandbox/variadic_macro_data/libs/variadic_macro_data/test/test_is_empty.cpp (contents, props changed)
Added: sandbox/variadic_macro_data/libs/variadic_macro_data/test/test_is_empty.cpp
==============================================================================
--- (empty file)
+++ sandbox/variadic_macro_data/libs/variadic_macro_data/test/test_is_empty.cpp 2011-08-01 13:02:30 EDT (Mon, 01 Aug 2011)
@@ -0,0 +1,25 @@
+#include <boost/variadic_macro_data/vmd.hpp>
+#include <boost/detail/lightweight_test.hpp>
+
+int main()
+ {
+
+#if BOOST_VMD_VARIADICS
+
+ #define DATA
+ #define OBJECT OBJECT2
+ #define OBJECT2
+ #define FUNC(x) FUNC2(x)
+ #define FUNC2(x)
+
+ BOOST_TEST(BOOST_VMD_IS_EMPTY());
+ BOOST_TEST(BOOST_VMD_IS_EMPTY(DATA));
+ BOOST_TEST(!BOOST_VMD_IS_EMPTY((x)));
+ BOOST_TEST(BOOST_VMD_IS_EMPTY(OBJECT));
+ BOOST_TEST(BOOST_VMD_IS_EMPTY(FUNC(z)));
+
+#endif
+
+ 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