blob: b724ee75dddf56ab680ed10c7cd8e2b5795572e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <string.h>
#include <kalmia.h>
#include "geometry.h"
#include "test/test.h"
LILY_FILE_BEGIN(geometry_suite)
LILY_TEST("fail to read non-float_array")
{
struct kai_tag_t *t = kai_parse_string(
"<non_float_array></non_float_array>"
);
struct ka_float_array_t arr;
int result = kai_read_float_array(&arr, t);
CHECK_EQF(result, -1, "%d");
kai_tag_destroy(t);
}
#include LILY_PUSH_TEST()
#define LILY_FILE_END
#include LILY_REGISTER_TESTS()
|