libdom
Loading...
Searching...
No Matches
Functions
domtsasserts.c File Reference
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <dom/dom.h>
#include "domts.h"

Functions

void __assert2 (const char *expr, const char *function, const char *file, int line)
 
bool is_true (bool arg)
 
bool is_null (void *arg)
 
bool is_same (void *expected, void *actual)
 
bool is_same_int (int expected, int actual)
 
bool is_same_unsigned_int32_t (uint32_t expected, uint32_t actual)
 
bool is_equals_int (int expected, int actual, bool dummy)
 
bool is_equals_bool (bool expected, bool actual, bool dummy)
 
bool is_equals_unsigned_int32_t (uint32_t expected, uint32_t actual, bool dummy)
 
bool is_equals_unsigned_long (dom_ulong expected, dom_ulong actual, bool dummy)
 
bool is_equals_string (const char *expected, dom_string *actual, bool ignoreCase)
 
bool is_equals_domstring (dom_string *expected, dom_string *actual, bool ignoreCase)
 
bool is_equals_list (list *expected, list *actual, bool ignoreCase)
 
bool is_instanceof (const char *type, dom_node *node)
 
bool is_size_domnamednodemap (uint32_t size, dom_namednodemap *map)
 
bool is_size_domnodelist (uint32_t size, dom_nodelist *list)
 
bool is_size_list (uint32_t size, list *list)
 
bool is_uri_equals (const char *scheme, const char *path, const char *host, const char *file, const char *name, const char *query, const char *fragment, const char *isAbsolute, dom_string *actual)
 
bool is_contenttype (const char *type)
 
bool has_feature (const char *feature, const char *version)
 
bool implementation_attribute (char *name, bool value)
 

Function Documentation

◆ __assert2()

void __assert2 ( const char * expr,
const char * function,
const char * file,
int line )

◆ has_feature()

bool has_feature ( const char * feature,
const char * version )

◆ implementation_attribute()

bool implementation_attribute ( char * name,
bool value )

◆ is_contenttype()

bool is_contenttype ( const char * type)

◆ is_equals_bool()

bool is_equals_bool ( bool expected,
bool actual,
bool dummy )

◆ is_equals_domstring()

bool is_equals_domstring ( dom_string * expected,
dom_string * actual,
bool ignoreCase )

◆ is_equals_int()

bool is_equals_int ( int expected,
int actual,
bool dummy )

◆ is_equals_list()

bool is_equals_list ( list * expected,
list * actual,
bool ignoreCase )

◆ is_equals_string()

bool is_equals_string ( const char * expected,
dom_string * actual,
bool ignoreCase )

Test whether two string are equal

Parameters
expectedThe expected string
actualThe actual string
ignoreCaseWhether to ignore letter case

◆ is_equals_unsigned_int32_t()

bool is_equals_unsigned_int32_t ( uint32_t expected,
uint32_t actual,
bool dummy )

◆ is_equals_unsigned_long()

bool is_equals_unsigned_long ( dom_ulong expected,
dom_ulong actual,
bool dummy )

◆ is_instanceof()

bool is_instanceof ( const char * type,
dom_node * node )

◆ is_null()

bool is_null ( void * arg)

◆ is_same()

bool is_same ( void * expected,
void * actual )

◆ is_same_int()

bool is_same_int ( int expected,
int actual )

◆ is_same_unsigned_int32_t()

bool is_same_unsigned_int32_t ( uint32_t expected,
uint32_t actual )

◆ is_size_domnamednodemap()

bool is_size_domnamednodemap ( uint32_t size,
dom_namednodemap * map )

◆ is_size_domnodelist()

bool is_size_domnodelist ( uint32_t size,
dom_nodelist * list )

◆ is_size_list()

bool is_size_list ( uint32_t size,
list * list )

◆ is_true()

bool is_true ( bool arg)

Following are the test conditions which defined in the DOMTS, please refer the DOM Test Suite for details

◆ is_uri_equals()

bool is_uri_equals ( const char * scheme,
const char * path,
const char * host,
const char * file,
const char * name,
const char * query,
const char * fragment,
const char * isAbsolute,
dom_string * actual )