Return-Path: Delivered-To: apmail-httpd-apreq-cvs-archive@www.apache.org Received: (qmail 68585 invoked from network); 2 Jul 2004 01:45:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jul 2004 01:45:23 -0000 Received: (qmail 66595 invoked by uid 500); 2 Jul 2004 01:45:46 -0000 Delivered-To: apmail-httpd-apreq-cvs-archive@httpd.apache.org Received: (qmail 66569 invoked by uid 500); 2 Jul 2004 01:45:46 -0000 Mailing-List: contact apreq-cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: apreq-dev@httpd.apache.org List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-cvs@httpd.apache.org Received: (qmail 66539 invoked by uid 500); 2 Jul 2004 01:45:45 -0000 Delivered-To: apmail-httpd-apreq-2-cvs@apache.org Received: (qmail 66531 invoked by uid 99); 2 Jul 2004 01:45:45 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Thu, 01 Jul 2004 18:45:44 -0700 Received: (qmail 68561 invoked by uid 1221); 2 Jul 2004 01:45:20 -0000 Date: 2 Jul 2004 01:45:20 -0000 Message-ID: <20040702014520.68560.qmail@minotaur.apache.org> From: joes@apache.org To: httpd-apreq-2-cvs@apache.org Subject: cvs commit: httpd-apreq-2/t params.c X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N joes 2004/07/01 18:45:20 Modified: t params.c Log: add more params_as() tests Revision Changes Path 1.13 +3 -0 httpd-apreq-2/t/params.c Index: params.c =================================================================== RCS file: /home/cvs/httpd-apreq-2/t/params.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- params.c 28 Jun 2004 04:50:14 -0000 1.12 +++ params.c 2 Jul 2004 01:45:20 -0000 1.13 @@ -56,6 +56,9 @@ static void params_as(CuTest *tc) { const char *val; + apr_array_header_t *arr; + arr = apreq_params_as_array(p,r,"a"); + CuAssertIntEquals(tc,2,arr->nelts); val = apreq_params_as_string(p,r,"a",APREQ_JOIN_AS_IS); CuAssertStrEquals(tc,"1, 2", val); }