![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <cassert>
#include <string>
#include "univalue.h"
Go to the source code of this file.
Macros | |
#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__); } } |
Functions | |
string | srcdir (JSON_TEST_SRC) |
static std::string | rtrim (std::string s) |
static void | runtest (string filename, const string &jdata) |
static void | runtest_file (const char *filename_) |
void | unescape_unicode_test () |
int | main (int argc, char *argv[]) |
Variables | |
static bool | test_failed = false |
static const char * | filenames [] |
#define ARRAY_SIZE | ( | arr | ) | (sizeof(arr) / sizeof((arr)[0])) |
Definition at line 17 of file unitester.cpp.
Referenced by main().
#define d_assert | ( | expr | ) | { if (!(expr)) { test_failed = true; fprintf(stderr, "%s failed\n", filename.c_str()); } } |
Definition at line 24 of file unitester.cpp.
Referenced by runtest().
#define f_assert | ( | expr | ) | { if (!(expr)) { test_failed = true; fprintf(stderr, "%s failed\n", __func__); } } |
Definition at line 25 of file unitester.cpp.
Referenced by unescape_unicode_test().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 153 of file unitester.cpp.
|
static |
Definition at line 27 of file unitester.cpp.
Referenced by runtest().
|
static |
Definition at line 33 of file unitester.cpp.
Referenced by runtest_file().
|
static |
Definition at line 57 of file unitester.cpp.
Referenced by main().
string srcdir | ( | JSON_TEST_SRC | ) |
Referenced by runtest_file().
void unescape_unicode_test | ( | ) |
Definition at line 131 of file unitester.cpp.
Referenced by main().
|
static |
Definition at line 81 of file unitester.cpp.
Referenced by main().
|
static |
Definition at line 22 of file unitester.cpp.
Referenced by main().