resource_test.hpp 446 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
/*!
 *\file resource_test.hpp
 *\brief This file gives some common header files for the interface tests.
 */


#ifndef RESOURCE_TEST_HPP
#define RESOURCE_TEST_HPP


11
#include "../../main_resource.hpp"
12 13 14 15 16 17 18 19 20


#define ASSERT_SUCCESS 0
#define ASSERT_FAILURE 1

#define assert__must_be_equal_int(A,B)  if ((A)!=(B)){cerr << "Assert failed: "<<A<<" must be equal to "<<B<<" (file: "<<__FILE__<<", l."<<__LINE__<<")"<<endl; return ASSERT_FAILURE;}


#endif