Mercurial > hg > octave-jordi > gnulib-hg
comparison tests/unicase/test-u8-casecmp.c @ 12496:a48d3d749ca5
Refactor common macros used in tests.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 24 Dec 2009 21:01:42 +0100 |
parents | e8d2c6fc33ad |
children | c2cbabec01dd |
comparison
equal
deleted
inserted
replaced
12495:16a0ada3a101 | 12496:a48d3d749ca5 |
---|---|
18 | 18 |
19 #include <config.h> | 19 #include <config.h> |
20 | 20 |
21 #include "unicase.h" | 21 #include "unicase.h" |
22 | 22 |
23 #include <stdio.h> | |
24 #include <stdlib.h> | |
25 | |
26 #include "uninorm.h" | 23 #include "uninorm.h" |
27 | 24 #include "macros.h" |
28 #define SIZEOF(array) (sizeof (array) / sizeof (array[0])) | |
29 #define ASSERT(expr) \ | |
30 do \ | |
31 { \ | |
32 if (!(expr)) \ | |
33 { \ | |
34 fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ | |
35 fflush (stderr); \ | |
36 abort (); \ | |
37 } \ | |
38 } \ | |
39 while (0) | |
40 | 25 |
41 #define UNIT uint8_t | 26 #define UNIT uint8_t |
42 #include "test-casecmp.h" | 27 #include "test-casecmp.h" |
43 #undef UNIT | 28 #undef UNIT |
44 | 29 |