about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/TESTS2C.sed2
-rw-r--r--posix/testcases.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/posix/TESTS2C.sed b/posix/TESTS2C.sed
index 28dd131dac..d8c2d72617 100644
--- a/posix/TESTS2C.sed
+++ b/posix/TESTS2C.sed
@@ -1,2 +1,2 @@
 s/\\/\\\\/g
-s/\(.*\):\(.*\):\(.*\)/  {\1, "\2", "\3"},/
+s/\([0-9]*\):\(.*\):\(.*\)/  {\1, "\2", "\3"},/
diff --git a/posix/testcases.h b/posix/testcases.h
index c471ca0613..d5dce0ae0f 100644
--- a/posix/testcases.h
+++ b/posix/testcases.h
@@ -157,3 +157,11 @@
   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Moammar Qudhafi"},
   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mu'ammar al-Qaddafi"},
   {0, "M[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]", "Mulazim Awwal Mu'ammar Muhammad Abu Minyar al-Qadhafi"},
+  {0, "[[:digit:]]+", "01234"},
+  {1, "[[:alpha:]]+", "01234"},
+  {0, "^[[:digit:]]*$", "01234"},
+  {1, "^[[:digit:]]*$", "01234a"},
+  {0, "^[[:alnum:]]*$", "01234a"},
+  {0, "^[[:xdigit:]]*$", "01234a"},
+  {1, "^[[:xdigit:]]*$", "01234g"},
+  {0, "^[[:alnum:][:space:]]*$", "Hello world"},