|
#ifndef JSON_SPIRIT_TEST_UTILS
#define JSON_SPIRIT_TEST_UTILS
// Copyright John W. Wilkinson 2007 - 2009.
// Distributed under the MIT License, see accompanying file LICENSE.txt
// json spirit version 4.03
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
#include <cassert>
// these functions allow you to inspect the values that caused a test to fail
template< class T1, class T2 >
void assert_eq( const T1& t1, const T2& t2 )
{
if( t1 == t2 ) return;
assert( false );
}
template< class T1, class T2 >
void assert_neq( const T1& t1, const T2& t2 )
{
if( !(t1 == t2) ) return;
assert( false );
}
#endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.