Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "lib/lib.h"
#include "lib/os_path.h"
#include "lib/status.h"
#include "lib/posix/posix.h"
#include <cxxtest/StdValueTraits.h>
#include <cxxtest/TestSuite.h>
#include "ps/CStr.h"
#include "maths/FixedVector3D.h"
#include "maths/Plane.h"
#include "maths/Vector3D.h"
Go to the source code of this file.
Namespaces | |
namespace | CxxTest |
Macros | |
#define | CXXTEST_HAVE_EH |
#define | CXXTEST_HAVE_STD |
#define | TS_ASSERT_OK(expr) TS_ASSERT_EQUALS((expr), INFO::OK) |
#define | TSM_ASSERT_OK(m, expr) TSM_ASSERT_EQUALS(m, (expr), INFO::OK) |
#define | TS_ASSERT_STR_EQUALS(str1, str2) TS_ASSERT_EQUALS(std::string(str1), std::string(str2)) |
#define | TSM_ASSERT_STR_EQUALS(m, str1, str2) TSM_ASSERT_EQUALS(m, std::string(str1), std::string(str2)) |
#define | TS_ASSERT_WSTR_EQUALS(str1, str2) TS_ASSERT_EQUALS(std::wstring(str1), std::wstring(str2)) |
#define | TSM_ASSERT_WSTR_EQUALS(m, str1, str2) TSM_ASSERT_EQUALS(m, std::wstring(str1), std::wstring(str2)) |
#define | TS_ASSERT_PATH_EQUALS(path1, path2) TS_ASSERT_EQUALS((path1).string(), (path2).string()) |
#define | TSM_ASSERT_PATH_EQUALS(m, path1, path2) TSM_ASSERT_EQUALS(m, (path1).string(), (path2).string()) |
#define | TS_ASSERT_STR_CONTAINS(str1, str2) TSM_ASSERT(str1, ts_str_contains(str1, str2)) |
#define | TS_ASSERT_STR_NOT_CONTAINS(str1, str2) TSM_ASSERT(str1, !ts_str_contains(str1, str2)) |
#define | TS_ASSERT_WSTR_CONTAINS(str1, str2) TSM_ASSERT(str1, ts_str_contains(str1, str2)) |
#define | TS_ASSERT_WSTR_NOT_CONTAINS(str1, str2) TSM_ASSERT(str1, !ts_str_contains(str1, str2)) |
#define | TS_ASSERT_VECTOR_EQUALS_ARRAY(vec1, array) TS_ASSERT_EQUALS(vec1, ts_make_vector((array), sizeof(array))) |
#define | TS_ASSERT_VECTOR_CONTAINS(vec1, element) TS_ASSERT(std::find((vec1).begin(), (vec1).end(), element) != (vec1).end()); |
#define | TS_ASSERT_MATRIX_EQUALS_DELTA(m1, m2, size, epsilon) |
#define | TS_ASSERT_MATRIX_DIFFERS_DELTA(m1, m2, size, epsilon) |
Functions | |
CxxTest::CXXTEST_COPY_CONST_TRAITS (CStr8) | |
CxxTest::CXXTEST_COPY_CONST_TRAITS (CStrW) | |
bool | ts_str_contains (const std::string &str1, const std::string &str2) |
bool | ts_str_contains (const std::wstring &str1, const std::wstring &str2) |
template<typename T > | |
std::vector< T > | ts_make_vector (T *start, size_t size_bytes) |
void | ScriptTestSetup (const ScriptInterface &) |
OsPath | DataDir () |
#define CXXTEST_HAVE_EH |
#define CXXTEST_HAVE_STD |
#define TS_ASSERT_MATRIX_DIFFERS_DELTA | ( | m1, | |
m2, | |||
size, | |||
epsilon | |||
) |
#define TS_ASSERT_MATRIX_EQUALS_DELTA | ( | m1, | |
m2, | |||
size, | |||
epsilon | |||
) |
#define TS_ASSERT_OK | ( | expr | ) | TS_ASSERT_EQUALS((expr), INFO::OK) |
#define TS_ASSERT_PATH_EQUALS | ( | path1, | |
path2 | |||
) | TS_ASSERT_EQUALS((path1).string(), (path2).string()) |
#define TS_ASSERT_STR_CONTAINS | ( | str1, | |
str2 | |||
) | TSM_ASSERT(str1, ts_str_contains(str1, str2)) |
#define TS_ASSERT_STR_EQUALS | ( | str1, | |
str2 | |||
) | TS_ASSERT_EQUALS(std::string(str1), std::string(str2)) |
#define TS_ASSERT_STR_NOT_CONTAINS | ( | str1, | |
str2 | |||
) | TSM_ASSERT(str1, !ts_str_contains(str1, str2)) |
#define TS_ASSERT_VECTOR_CONTAINS | ( | vec1, | |
element | |||
) | TS_ASSERT(std::find((vec1).begin(), (vec1).end(), element) != (vec1).end()); |
#define TS_ASSERT_VECTOR_EQUALS_ARRAY | ( | vec1, | |
array | |||
) | TS_ASSERT_EQUALS(vec1, ts_make_vector((array), sizeof(array))) |
#define TS_ASSERT_WSTR_CONTAINS | ( | str1, | |
str2 | |||
) | TSM_ASSERT(str1, ts_str_contains(str1, str2)) |
#define TS_ASSERT_WSTR_EQUALS | ( | str1, | |
str2 | |||
) | TS_ASSERT_EQUALS(std::wstring(str1), std::wstring(str2)) |
#define TS_ASSERT_WSTR_NOT_CONTAINS | ( | str1, | |
str2 | |||
) | TSM_ASSERT(str1, !ts_str_contains(str1, str2)) |
#define TSM_ASSERT_OK | ( | m, | |
expr | |||
) | TSM_ASSERT_EQUALS(m, (expr), INFO::OK) |
#define TSM_ASSERT_PATH_EQUALS | ( | m, | |
path1, | |||
path2 | |||
) | TSM_ASSERT_EQUALS(m, (path1).string(), (path2).string()) |
#define TSM_ASSERT_STR_EQUALS | ( | m, | |
str1, | |||
str2 | |||
) | TSM_ASSERT_EQUALS(m, std::string(str1), std::string(str2)) |
#define TSM_ASSERT_WSTR_EQUALS | ( | m, | |
str1, | |||
str2 | |||
) | TSM_ASSERT_EQUALS(m, std::wstring(str1), std::wstring(str2)) |
OsPath DataDir | ( | ) |
void ScriptTestSetup | ( | const ScriptInterface & | scriptInterface | ) |
bool ts_str_contains | ( | const std::string & | str1, |
const std::string & | str2 | ||
) |
bool ts_str_contains | ( | const std::wstring & | str1, |
const std::wstring & | str2 | ||
) |