#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <cassert>
#include <string>
#include "univalue.h"
Go to the source code of this file.
|
| #define | ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) |
| |
| #define | d_assert(expr) { if (!(expr)) { test_failed = true; fprintf(stderr, "%s failed\n", filename.c_str()); } } |
| |
| #define | f_assert(expr) { if (!(expr)) { test_failed = true; fprintf(stderr, "%s failed\n", __func__); } } |
| |
◆ ARRAY_SIZE
| #define ARRAY_SIZE |
( |
|
arr | ) |
(sizeof(arr) / sizeof((arr)[0])) |
◆ d_assert
| #define d_assert |
( |
|
expr | ) |
{ if (!(expr)) { test_failed = true; fprintf(stderr, "%s failed\n", filename.c_str()); } } |
◆ f_assert
| #define f_assert |
( |
|
expr | ) |
{ if (!(expr)) { test_failed = true; fprintf(stderr, "%s failed\n", __func__); } } |
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
◆ rtrim()
| static std::string rtrim |
( |
std::string |
s | ) |
|
|
static |
◆ runtest()
| static void runtest |
( |
std::string |
filename, |
|
|
const std::string & |
jdata |
|
) |
| |
|
static |
◆ runtest_file()
| static void runtest_file |
( |
const char * |
filename_ | ) |
|
|
static |
◆ srcdir()
| std::string srcdir |
( |
JSON_TEST_SRC |
| ) |
|
◆ unescape_unicode_test()
| void unescape_unicode_test |
( |
| ) |
|
◆ filenames
◆ test_failed