2002-01-20 16:29:23 +00:00
|
|
|
// Copyright (C) 2001
|
|
|
|
// Housemarque Oy
|
|
|
|
// http://www.housemarque.com
|
|
|
|
//
|
|
|
|
// Permission to copy, use, modify, sell and distribute this software is
|
|
|
|
// granted provided this copyright notice appears in all copies. This
|
|
|
|
// software is provided "as is" without express or implied warranty, and
|
|
|
|
// with no claim as to its suitability for any purpose.
|
|
|
|
|
|
|
|
// See http://www.boost.org for most recent version.
|
|
|
|
|
|
|
|
#include <boost/preprocessor/for.hpp>
|
2002-01-20 17:46:01 +00:00
|
|
|
#include <boost/preprocessor/dec.hpp>
|
2002-01-20 16:29:23 +00:00
|
|
|
|
|
|
|
#include <libs/preprocessor/test/test.hpp>
|
|
|
|
|
|
|
|
// ***
|
|
|
|
|
2002-01-20 17:42:29 +00:00
|
|
|
#ifndef FOR_TEST_MAX
|
|
|
|
#define FOR_TEST_MAX 50
|
|
|
|
#endif
|
|
|
|
|
2002-01-20 17:46:01 +00:00
|
|
|
#define C(D,X) X
|
|
|
|
#define F(D,X) BOOST_PP_DEC(X)
|
2002-01-20 16:29:23 +00:00
|
|
|
#define I(D,X) -X
|
|
|
|
|
2002-01-20 17:46:01 +00:00
|
|
|
TEST((FOR_TEST_MAX*(FOR_TEST_MAX+1)/2)+1 BOOST_PP_FOR(FOR_TEST_MAX,C,F,I))
|