LMMS
Loading...
Searching...
No Matches
serd_test.c File Reference
#include <float.h>
#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "serd/serd.h"

Classes

struct  ReaderTest

Macros

#define USTR(s)
#define INFINITY   (DBL_MAX + DBL_MAX)
#define NAN   (INFINITY - INFINITY)
#define MAX   1000000
#define NUM_TESTS   1000

Functions

static int failure (const char *fmt,...)
static bool test_strtod (double dbl, double max_delta)
static SerdStatus count_prefixes (void *handle, const SerdNode *name, const SerdNode *uri)
static SerdStatus test_sink (void *handle, SerdStatementFlags flags, const SerdNode *graph, const SerdNode *subject, const SerdNode *predicate, const SerdNode *object, const SerdNode *object_datatype, const SerdNode *object_lang)
int main (void)

Macro Definition Documentation

◆ INFINITY

#define INFINITY   (DBL_MAX + DBL_MAX)

◆ MAX

#define MAX   1000000

◆ NAN

#define NAN   (INFINITY - INFINITY)

◆ NUM_TESTS

#define NUM_TESTS   1000

◆ USTR

#define USTR ( s)
Value:
((const uint8_t*)(s))
unsigned s
Definition inflate.c:1555
unsigned char uint8_t
Definition mid.cpp:98

Function Documentation

◆ count_prefixes()

SerdStatus count_prefixes ( void * handle,
const SerdNode * name,
const SerdNode * uri )
static

◆ failure()

int failure ( const char * fmt,
... )
static

◆ main()

int main ( void )

◆ test_sink()

SerdStatus test_sink ( void * handle,
SerdStatementFlags flags,
const SerdNode * graph,
const SerdNode * subject,
const SerdNode * predicate,
const SerdNode * object,
const SerdNode * object_datatype,
const SerdNode * object_lang )
static

◆ test_strtod()

bool test_strtod ( double dbl,
double max_delta )
static