Mercurial > libunicode
comparison tests/test-unicode.c @ 24:23ceab03a393 1.0.0
unicode: remove uni_totitle
While here, add more consts.
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 23 Mar 2022 13:17:10 +0100 |
parents | 4983392b356f |
children | 4da5819148c6 |
comparison
equal
deleted
inserted
replaced
23:4983392b356f | 24:23ceab03a393 |
---|---|
320 RX_REQUIRE(!uni_isupper(U'é')); | 320 RX_REQUIRE(!uni_isupper(U'é')); |
321 RX_REQUIRE(uni_isupper('A')); | 321 RX_REQUIRE(uni_isupper('A')); |
322 RX_REQUIRE(uni_isupper(U'É')); | 322 RX_REQUIRE(uni_isupper(U'É')); |
323 } | 323 } |
324 | 324 |
325 RX_TEST_CASE(misc, toupper) | |
326 { | |
327 RX_INT_REQUIRE_EQUAL(uni_totitle(U's'), 'S'); | |
328 } | |
329 | |
330 int | 325 int |
331 main(int argc, char **argv) | 326 main(int argc, char **argv) |
332 { | 327 { |
333 return rx_main(0, NULL, argc, (const char **)argv) == RX_SUCCESS ? 0 : 1; | 328 return rx_main(0, NULL, argc, (const char **)argv) == RX_SUCCESS ? 0 : 1; |
334 } | 329 } |