summaryrefslogtreecommitdiff
path: root/tests/uninorm
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-02-22 13:15:52 +0100
committerBruno Haible <bruno@clisp.org>2009-02-22 13:15:52 +0100
commit24281f1506de2ae0815b2eaa82bb892d2ca0a2c9 (patch)
tree16bed67e9115ef433acdcc4d9797ecb9bd209bbf /tests/uninorm
parentbdec3e410196c242757abb0a130dd929e6375615 (diff)
downloadgnulib-24281f1506de2ae0815b2eaa82bb892d2ca0a2c9.tar.gz
Handle empty strings correctly.
Diffstat (limited to 'tests/uninorm')
-rw-r--r--tests/uninorm/test-u16-nfc.c3
-rw-r--r--tests/uninorm/test-u16-nfd.c3
-rw-r--r--tests/uninorm/test-u16-nfkc.c3
-rw-r--r--tests/uninorm/test-u16-nfkd.c3
-rw-r--r--tests/uninorm/test-u32-nfc.c3
-rw-r--r--tests/uninorm/test-u32-nfd.c3
-rw-r--r--tests/uninorm/test-u32-nfkc.c3
-rw-r--r--tests/uninorm/test-u32-nfkd.c3
-rw-r--r--tests/uninorm/test-u8-nfc.c3
-rw-r--r--tests/uninorm/test-u8-nfd.c3
-rw-r--r--tests/uninorm/test-u8-nfkc.c3
-rw-r--r--tests/uninorm/test-u8-nfkd.c3
12 files changed, 36 insertions, 0 deletions
diff --git a/tests/uninorm/test-u16-nfc.c b/tests/uninorm/test-u16-nfc.c
index 397914c5f4..70767df5af 100644
--- a/tests/uninorm/test-u16-nfc.c
+++ b/tests/uninorm/test-u16-nfc.c
@@ -103,6 +103,9 @@ check (const uint16_t *input, size_t input_length,
void
test_u16_nfc (void)
{
+ { /* Empty string. */
+ ASSERT (check (NULL, 0, NULL, 0) == 0);
+ }
{ /* SPACE */
static const uint16_t input[] = { 0x0020 };
ASSERT (check (input, SIZEOF (input), input, SIZEOF (input)) == 0);
diff --git a/tests/uninorm/test-u16-nfd.c b/tests/uninorm/test-u16-nfd.c
index 84499f0d37..161abd4740 100644
--- a/tests/uninorm/test-u16-nfd.c
+++ b/tests/uninorm/test-u16-nfd.c
@@ -103,6 +103,9 @@ check (const uint16_t *input, size_t input_length,
void
test_u16_nfd (void)
{
+ { /* Empty string. */
+ ASSERT (check (NULL, 0, NULL, 0) == 0);
+ }
{ /* SPACE */
static const uint16_t input[] = { 0x0020 };
ASSERT (check (input, SIZEOF (input), input, SIZEOF (input)) == 0);
diff --git a/tests/uninorm/test-u16-nfkc.c b/tests/uninorm/test-u16-nfkc.c
index aa7bc2ceef..df64804482 100644
--- a/tests/uninorm/test-u16-nfkc.c
+++ b/tests/uninorm/test-u16-nfkc.c
@@ -103,6 +103,9 @@ check (const uint16_t *input, size_t input_length,
void
test_u16_nfkc (void)
{
+ { /* Empty string. */
+ ASSERT (check (NULL, 0, NULL, 0) == 0);
+ }
{ /* SPACE */
static const uint16_t input[] = { 0x0020 };
ASSERT (check (input, SIZEOF (input), input, SIZEOF (input)) == 0);
diff --git a/tests/uninorm/test-u16-nfkd.c b/tests/uninorm/test-u16-nfkd.c
index 3cc1fac8fc..587a704ae6 100644
--- a/tests/uninorm/test-u16-nfkd.c
+++ b/tests/uninorm/test-u16-nfkd.c
@@ -103,6 +103,9 @@ check (const uint16_t *input, size_t input_length,
void
test_u16_nfkd (void)
{
+ { /* Empty string. */
+ ASSERT (check (NULL, 0, NULL, 0) == 0);
+ }
{ /* SPACE */
static const uint16_t input[] = { 0x0020 };
ASSERT (check (input, SIZEOF (input), input, SIZEOF (input)) == 0);
diff --git a/tests/uninorm/test-u32-nfc.c b/tests/uninorm/test-u32-nfc.c
index 0c7cd790fc..3aafb96a8a 100644
--- a/tests/uninorm/test-u32-nfc.c
+++ b/tests/uninorm/test-u32-nfc.c
@@ -103,6 +103,9 @@ check (const uint32_t *input, size_t input_length,
void
test_u32_nfc (void)
{
+ { /* Empty string. */
+ ASSERT (check (NULL, 0, NULL, 0) == 0);
+ }
{ /* SPACE */
static const uint32_t input[] = { 0x0020 };
ASSERT (check (input, SIZEOF (input), input, SIZEOF (input)) == 0);
diff --git a/tests/uninorm/test-u32-nfd.c b/tests/uninorm/test-u32-nfd.c
index 9aa820a3db..426ad9dd56 100644
--- a/tests/uninorm/test-u32-nfd.c
+++ b/tests/uninorm/test-u32-nfd.c
@@ -103,6 +103,9 @@ check (const uint32_t *input, size_t input_length,
void
test_u32_nfd (void)
{
+ { /* Empty string. */
+ ASSERT (check (NULL, 0, NULL, 0) == 0);
+ }
{ /* SPACE */
static const uint32_t input[] = { 0x0020 };
ASSERT (check (input, SIZEOF (input), input, SIZEOF (input)) == 0);
diff --git a/tests/uninorm/test-u32-nfkc.c b/tests/uninorm/test-u32-nfkc.c
index 0ef65f5935..831e490a45 100644
--- a/tests/uninorm/test-u32-nfkc.c
+++ b/tests/uninorm/test-u32-nfkc.c
@@ -103,6 +103,9 @@ check (const uint32_t *input, size_t input_length,
void
test_u32_nfkc (void)
{
+ { /* Empty string. */
+ ASSERT (check (NULL, 0, NULL, 0) == 0);
+ }
{ /* SPACE */
static const uint32_t input[] = { 0x0020 };
ASSERT (check (input, SIZEOF (input), input, SIZEOF (input)) == 0);
diff --git a/tests/uninorm/test-u32-nfkd.c b/tests/uninorm/test-u32-nfkd.c
index 17768f74ba..408c593b0b 100644
--- a/tests/uninorm/test-u32-nfkd.c
+++ b/tests/uninorm/test-u32-nfkd.c
@@ -103,6 +103,9 @@ check (const uint32_t *input, size_t input_length,
void
test_u32_nfkd (void)
{
+ { /* Empty string. */
+ ASSERT (check (NULL, 0, NULL, 0) == 0);
+ }
{ /* SPACE */
static const uint32_t input[] = { 0x0020 };
ASSERT (check (input, SIZEOF (input), input, SIZEOF (input)) == 0);
diff --git a/tests/uninorm/test-u8-nfc.c b/tests/uninorm/test-u8-nfc.c
index 0e19157089..5a86e59f26 100644
--- a/tests/uninorm/test-u8-nfc.c
+++ b/tests/uninorm/test-u8-nfc.c
@@ -103,6 +103,9 @@ check (const uint8_t *input, size_t input_length,
void
test_u8_nfc (void)
{
+ { /* Empty string. */
+ ASSERT (check (NULL, 0, NULL, 0) == 0);
+ }
{ /* SPACE */
static const uint8_t input[] = { 0x20 };
ASSERT (check (input, SIZEOF (input), input, SIZEOF (input)) == 0);
diff --git a/tests/uninorm/test-u8-nfd.c b/tests/uninorm/test-u8-nfd.c
index 9dfde02c23..2338e8f8f6 100644
--- a/tests/uninorm/test-u8-nfd.c
+++ b/tests/uninorm/test-u8-nfd.c
@@ -103,6 +103,9 @@ check (const uint8_t *input, size_t input_length,
void
test_u8_nfd (void)
{
+ { /* Empty string. */
+ ASSERT (check (NULL, 0, NULL, 0) == 0);
+ }
{ /* SPACE */
static const uint8_t input[] = { 0x20 };
ASSERT (check (input, SIZEOF (input), input, SIZEOF (input)) == 0);
diff --git a/tests/uninorm/test-u8-nfkc.c b/tests/uninorm/test-u8-nfkc.c
index 6792e826d4..1d9f0e1a98 100644
--- a/tests/uninorm/test-u8-nfkc.c
+++ b/tests/uninorm/test-u8-nfkc.c
@@ -103,6 +103,9 @@ check (const uint8_t *input, size_t input_length,
void
test_u8_nfkc (void)
{
+ { /* Empty string. */
+ ASSERT (check (NULL, 0, NULL, 0) == 0);
+ }
{ /* SPACE */
static const uint8_t input[] = { 0x20 };
ASSERT (check (input, SIZEOF (input), input, SIZEOF (input)) == 0);
diff --git a/tests/uninorm/test-u8-nfkd.c b/tests/uninorm/test-u8-nfkd.c
index c2a2d14536..498f42e4bd 100644
--- a/tests/uninorm/test-u8-nfkd.c
+++ b/tests/uninorm/test-u8-nfkd.c
@@ -103,6 +103,9 @@ check (const uint8_t *input, size_t input_length,
void
test_u8_nfkd (void)
{
+ { /* Empty string. */
+ ASSERT (check (NULL, 0, NULL, 0) == 0);
+ }
{ /* SPACE */
static const uint8_t input[] = { 0x20 };
ASSERT (check (input, SIZEOF (input), input, SIZEOF (input)) == 0);