OSSP CVS Repository

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

ossp-pkg/var/var_test.c 1.24 -> 1.25

--- var_test.c   2001/12/12 17:18:55     1.24
+++ var_test.c   2001/12/13 16:03:42     1.25
@@ -74,6 +74,8 @@
         { "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 }
@@ -143,7 +145,24 @@
         { "${ARRAY[$NUMEXP-1]}",          "entry0"                                         },
         { "${ARRAY[${UNDEFINED}-1]}",     "${ARRAY[${UNDEFINED}-1]}"                       },
         { "${ARRAY[5/(${UNDEFINED})]}",   "${ARRAY[5/(${UNDEFINED})]}"                     },
-        { "[${ARRAY}-]",                  "entry0-entry1-entry2-entry3-"                   }
+        { "[${ARRAY[#]}-]",               "entry0-entry1-entry2-entry3-"                   },
+        { "[${ARRAY[#+1]}-]",             "entry1-entry2-entry3-"                          },
+        {
+        "[${ARRAY}:${ARRAY[#]}-]",
+        "entry0:entry0-entry0:entry1-entry0:entry2-entry0:entry3-"
+        },
+        {
+        "[${HEINZ[#]}:${ARRAY[#]}-]",
+        "heinz0:entry0-heinz1:entry1-:entry2-:entry3-"
+        },
+        {
+        "[${HEINZ[#]}:[${ARRAY[#]}] ]",
+        "heinz0:entry0entry1entry2entry3 heinz1:entry0entry1entry2entry3 "
+        },
+        {
+        "[${HEINZ[#]}: [${ARRAY[#]}${ARRAY[#+1]:+, }]${HEINZ[#+1]:+; }]",
+        "heinz0: entry0, entry1, entry2, entry3; heinz1: entry0, entry1, entry2, entry3"
+        }
     };
     char *tmp;
     size_t tmp_len;

CVSTrac 2.0.1