Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 71385 invoked from network); 14 Jun 2002 01:33:38 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Jun 2002 01:33:38 -0000 Received: (qmail 28937 invoked by uid 97); 14 Jun 2002 01:33:46 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 28919 invoked by uid 97); 14 Jun 2002 01:33:45 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 28908 invoked by uid 97); 14 Jun 2002 01:33:45 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: 14 Jun 2002 01:33:31 -0000 Message-ID: <20020614013331.1470.qmail@icarus.apache.org> From: conor@apache.org To: jakarta-commons-sandbox-cvs@apache.org Subject: cvs commit: jakarta-commons-sandbox/jrcs/src/test/org/apache/commons/jrcs/rcs ParsingTest.java idchar.testfile make_idchar_test.sh X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N conor 2002/06/13 18:33:31 Added: jrcs/src/test/org/apache/commons/jrcs/rcs ParsingTest.java idchar.testfile make_idchar_test.sh Log: created a test for this problem added a test RCS file, with tags with lots of graphic characters shell script for creating idchar.testfile Submitted By: Matt Quail Revision Changes Path 1.1 jakarta-commons-sandbox/jrcs/src/test/org/apache/commons/jrcs/rcs/ParsingTest.java Index: ParsingTest.java =================================================================== /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" and * "Apache Maven" must not be used to endorse or promote products * derived from this software without prior written permission. For * written permission, please contact apache@apache.org. * * 5. Products derived from this software may not be called "Apache", * "Apache Maven", nor may "Apache" appear in their name, without * prior written permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * . */ package org.apache.commons.jrcs.rcs; import junit.framework.TestCase; import java.io.InputStream; /** * @author Matt Quail (matt_quail AT yahoo DOT com) */ public class ParsingTest extends TestCase { public ParsingTest(String testName) { super(testName); } /** * Test to check that all the parser */ public void testIDCHAR() throws Exception { InputStream is = getClass().getResourceAsStream("idchar.testfile"); System.out.println("\n\n basedir=" + System.getProperty("basedir")); assertNotNull(is); Archive ar = new Archive("idchar_test.txt,v", is); } } 1.1 jakarta-commons-sandbox/jrcs/src/test/org/apache/commons/jrcs/rcs/idchar.testfile Index: idchar.testfile =================================================================== head 1.1; access; symbols TILDE~NAME:1.1 LCB}NAME:1.1 BAR|NAME:1.1 RCBR{NAME:1.1 TICK`NAME:1.1 CARAT^NAME:1.1 LSBR]NAME:1.1 SLOSH\NAME:1.1 RSBR[NAME:1.1 QUESTION?NAME:1.1 LABR>NAME:1.1 EQUALS=NAME:1.1 RABR $fn echo "description" | ci -m"blah" $fn names="SIMPLENAME lowername MIXEDname UNDERSCORE_NAME"\ " NAME1 1NAME NAME1NAME"\ " BANG!NAME DQUOTE\"NAME HASH#NAME"\ " PERCENT%NAME AMP&NAME SQUOTE'NAME"\ " RRBR(NAME LRBR)NAME STAR*NAME PLUS+NAME"\ " MINUS-NAME SLASH/NAME"\ " RABRNAME QUESTION?NAME"\ " RSBR[NAME SLOSH\\NAME LSBR]NAME CARAT^NAME TICK\`NAME"\ " RCBR{NAME BAR|NAME LCB}NAME TILDE~NAME" for i in $names ; do rcs -n$i:1.1 $fn done mv $fn,v $fn -- To unsubscribe, e-mail: For additional commands, e-mail: