mirror of
https://github.com/boostorg/test.git
synced 2026-02-12 00:22:18 +00:00
33 lines
955 B
C++
33 lines
955 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.
|
|
//
|
|
// Description : header-only usage variant with custom main test
|
|
// ***************************************************************************
|
|
|
|
// Boost.Test
|
|
#define BOOST_TEST_MODULE header only test
|
|
#define BOOST_TEST_NO_MAIN
|
|
#define BOOST_TEST_ALTERNATIVE_INIT_API
|
|
#include <boost/test/included/unit_test.hpp>
|
|
|
|
BOOST_AUTO_TEST_CASE( test )
|
|
{
|
|
int i = 1;
|
|
BOOST_CHECK( i*i == 1 );
|
|
}
|
|
|
|
//____________________________________________________________________________//
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
return boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
|
|
}
|
|
|
|
//____________________________________________________________________________//
|
|
|
|
// EOF
|