X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/033fd4e36c4cceab309b15253194999ab8dddfa2..cb9a695c5b6058d2c319789ca154f555d6c0815c:/lib/test.c diff --git a/lib/test.c b/lib/test.c index ed765e7..2b40a44 100644 --- a/lib/test.c +++ b/lib/test.c @@ -350,13 +350,16 @@ static void test_casefold(void) { else l = c; break; +#if 0 + /* unidata-based case folding doens't support special cases */ case 0xB5: /* MICRO SIGN */ - l = 0x3BC; /* GREEK SMALL LETTER MU */ + l = 0x39C; /* GREEK SMALL LETTER MU */ break; case 0xDF: /* LATIN SMALL LETTER SHARP S */ insist(!strcmp(ls, "ss")); l = 0; break; +#endif } if(l) { u[0] = l; @@ -377,7 +380,10 @@ static void test_casefold(void) { /** @brief Less-than comparison function for integer heap */ static inline int int_lt(int a, int b) { return a < b; } +/** @struct iheap + * @brief A heap with @c int elements */ HEAP_TYPE(iheap, int, int_lt); +HEAP_DEFINE(iheap, int, int_lt); /** @brief Tests for @ref heap.h */ static void test_heap(void) {