OSSP CVS Repository

ossp - Difference in ossp-pkg/var/var_test.c versions 1.31 and 1.32
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/var/var_test.c 1.31 -> 1.32

--- var_test.c   2002/01/09 11:17:20     1.31
+++ var_test.c   2002/01/09 11:23:01     1.32
@@ -92,21 +92,22 @@
 int main(int argc, char **argv)
 {
     const struct variable vars[] = {
-        { "HOME",   0, "/home/regression-tests" },
-        { "OSTYPE", 0, "regression-os" },
-        { "TERM",   0, "regression-term" },
-        { "FOO",    0, "os" },
-        { "BAR",    0, "type" },
-        { "EMPTY",  0, "" },
-        { "ARRAY",  0, "entry0" },
-        { "ARRAY",  1, "entry1" },
-        { "ARRAY",  2, "entry2" },
-        { "ARRAY",  3, "entry3" },
-        { "HEINZ",  0, "heinz0" },
-        { "HEINZ",  1, "heinz1" },
-        { "NUMBER", 0, "+2" },
-        { "NUMEXP", 0, "((16)%5)" },
-        { NULL,     0, NULL }
+        { "ARRAY",     0, "entry0" },
+        { "ARRAY",     1, "entry1" },
+        { "ARRAY",     2, "entry2" },
+        { "ARRAY",     3, "entry3" },
+        { "BAR",       0, "type" },
+        { "EMPTY",     0, "" },
+        { "FOO",       0, "os" },
+        { "HEINZ",     0, "heinz0" },
+        { "HEINZ",     1, "heinz1" },
+        { "HOME",      0, "/home/regression-tests" },
+        { "MULTILINE", 0, "line1\nline2\n" },
+        { "NUMBER",    0, "+2" },
+        { "NUMEXP",    0, "((16)%5)" },
+        { "OSTYPE",    0, "regression-os" },
+        { "TERM",      0, "regression-term" },
+        { NULL,        0, NULL }
         };
 
     const struct test_case tests[] = {
@@ -177,6 +178,7 @@
         { "[${ARRAY[#+1]}-]",             "entry1-entry2-entry3-"                          },
         { "-[${ARRAY[#]}:]{1,$NUMBER}-",  "-entry1:entry2:-"                               },
         { "-[${ARRAY[#]}:]{1,3,5}-",      "-entry1::-"                                     },
+        { "${MULTILINE:s/^/ | /g}",       " | line1\n | line2\n"                           },
         {
         "[${ARRAY}:${ARRAY[#]}-]",
         "entry0:entry0-entry0:entry1-entry0:entry2-entry0:entry3-"

CVSTrac 2.0.1