2
0
mirror of https://github.com/boostorg/test.git synced 2026-02-16 13:52:11 +00:00
Files
test/test/usage-variants-ts/single-header-custom-init-test.cpp
2015-06-13 21:12:30 -04:00

36 lines
968 B
C++

// (C) Copyright Gennadiy Rozental 2001-2015.
// 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/test for the library home page.
//
// File : $RCSfile$
//
// Version : $Revision$
//
// Description : single header usage variant with custom init test
// ***************************************************************************
// Boost.Test
#define BOOST_TEST_ALTERNATIVE_INIT_API
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test )
{
int i = 1;
BOOST_TEST( i*i == 1 );
}
//____________________________________________________________________________//
bool init_unit_test() {
boost::unit_test::framework::master_test_suite().p_name.value = "Custom init func";
return true;
}
//____________________________________________________________________________//
// EOF