mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 12:05:50 +00:00
* Add FlatBufferBuilder move semantics tests to main Do not eagerly delete/reset allocators in release and release_raw functions Update android, vs2010 build files New tests for various types of FlatBufferBuilders and move semantics * Improve test failure output with function names
18 lines
571 B
C++
18 lines
571 B
C++
#include "test_assert.h"
|
|
|
|
int testing_fails = 0;
|
|
|
|
void TestFail(const char *expval, const char *val, const char *exp,
|
|
const char *file, int line, const char *func) {
|
|
TEST_OUTPUT_LINE("VALUE: \"%s\"", expval);
|
|
TEST_OUTPUT_LINE("EXPECTED: \"%s\"", val);
|
|
TEST_OUTPUT_LINE("TEST FAILED: %s:%d, %s in %s", file, line, exp, func? func : "");
|
|
testing_fails++;
|
|
}
|
|
|
|
void TestEqStr(const char *expval, const char *val, const char *exp,
|
|
const char *file, int line) {
|
|
if (strcmp(expval, val) != 0) { TestFail(expval, val, exp, file, line); }
|
|
}
|
|
|