public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-java/commons-codec/files: 1.3-tests-fix.patch
@ 2008-03-22  2:24 Petteri Raty (betelgeuse)
  0 siblings, 0 replies; 4+ messages in thread
From: Petteri Raty (betelgeuse) @ 2008-03-22  2:24 UTC (permalink / raw
  To: gentoo-commits

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=utf8, Size: 3949 bytes --]

betelgeuse    08/03/22 02:24:53

  Added:                1.3-tests-fix.patch
  Log:
  Prepare for generic src_test.
  (Portage version: 2.1.4.4)

Revision  Changes    Path
1.1                  dev-java/commons-codec/files/1.3-tests-fix.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-codec/files/1.3-tests-fix.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-codec/files/1.3-tests-fix.patch?rev=1.1&content-type=text/plain

Index: 1.3-tests-fix.patch
===================================================================
--- /var/tmp/portage/dev-java/commons-codec-1.3-r1/work/src/test/org/apache/commons/codec/language/SoundexTest.java	2004-06-02 03:55:38.000000000 +0300
+++ src/test/org/apache/commons/codec/language/SoundexTest.java	2008-03-22 04:22:58.000000000 +0200
@@ -1,9 +1,10 @@
 /*
- * Copyright 2001-2004 The Apache Software Foundation.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
  * 
  *      http://www.apache.org/licenses/LICENSE-2.0
  * 
@@ -19,6 +20,7 @@
 
 import junit.framework.Test;
 import junit.framework.TestSuite;
+
 import org.apache.commons.codec.EncoderException;
 import org.apache.commons.codec.StringEncoder;
 import org.apache.commons.codec.StringEncoderAbstractTest;
@@ -26,13 +28,13 @@
 /**
  * Tests {@link Soundex}
  * 
- * @version $Id: 1.3-tests-fix.patch,v 1.1 2008/03/22 02:24:52 betelgeuse Exp $
  * @author Apache Software Foundation
+ * @version $Id: 1.3-tests-fix.patch,v 1.1 2008/03/22 02:24:52 betelgeuse Exp $
  */
 public class SoundexTest extends StringEncoderAbstractTest {
 
     public static Test suite() {
-        return (new TestSuite(SoundexTest.class));
+        return new TestSuite(SoundexTest.class);
     }
 
     private Soundex encoder = null;
@@ -340,30 +342,39 @@
     /**
      * Fancy characters are not mapped by the default US mapping.
      * 
-     * http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29080
+     * http://issues.apache.org/bugzilla/show_bug.cgi?id=29080
      */
     public void testUsMappingOWithDiaeresis() {
         assertEquals("O000", this.getEncoder().encode("o"));
+        if ( Character.isLetter('ö') ) {
         try {
             assertEquals("Ö000", this.getEncoder().encode("ö"));
             fail("Expected IllegalArgumentException not thrown");
         } catch (IllegalArgumentException e) {
             // expected
         }
+        } else {
+            assertEquals("", this.getEncoder().encode("ö"));
+        }
     }
 
     /**
      * Fancy characters are not mapped by the default US mapping.
      * 
-     * http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29080
+     * http://issues.apache.org/bugzilla/show_bug.cgi?id=29080
      */
     public void testUsMappingEWithAcute() {
         assertEquals("E000", this.getEncoder().encode("e"));
+        if ( Character.isLetter('é') ) {
         try {
             assertEquals("É000", this.getEncoder().encode("é"));
             fail("Expected IllegalArgumentException not thrown");
         } catch (IllegalArgumentException e) {
             // expected
         }
+        } else {
+            assertEquals("", this.getEncoder().encode("é"));
     }
+    }
+    
 }



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-java/commons-codec/files: 1.3-tests-fix.patch
@ 2008-03-22  2:26 Petteri Raty (betelgeuse)
  0 siblings, 0 replies; 4+ messages in thread
From: Petteri Raty (betelgeuse) @ 2008-03-22  2:26 UTC (permalink / raw
  To: gentoo-commits

betelgeuse    08/03/22 02:26:43

  Modified:             1.3-tests-fix.patch
  Log:
  Patch had Id CVS tag in it.
  (Portage version: 2.1.4.4)

Revision  Changes    Path
1.2                  dev-java/commons-codec/files/1.3-tests-fix.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-codec/files/1.3-tests-fix.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-codec/files/1.3-tests-fix.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-codec/files/1.3-tests-fix.patch?r1=1.1&r2=1.2

Index: 1.3-tests-fix.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-java/commons-codec/files/1.3-tests-fix.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- 1.3-tests-fix.patch	22 Mar 2008 02:24:52 -0000	1.1
+++ 1.3-tests-fix.patch	22 Mar 2008 02:26:42 -0000	1.2
@@ -24,22 +24,6 @@
  import org.apache.commons.codec.EncoderException;
  import org.apache.commons.codec.StringEncoder;
  import org.apache.commons.codec.StringEncoderAbstractTest;
-@@ -26,13 +28,13 @@
- /**
-  * Tests {@link Soundex}
-  * 
-- * @version $Id: 1.3-tests-fix.patch,v 1.1 2008/03/22 02:24:52 betelgeuse Exp $
-  * @author Apache Software Foundation
-+ * @version $Id: 1.3-tests-fix.patch,v 1.1 2008/03/22 02:24:52 betelgeuse Exp $
-  */
- public class SoundexTest extends StringEncoderAbstractTest {
- 
-     public static Test suite() {
--        return (new TestSuite(SoundexTest.class));
-+        return new TestSuite(SoundexTest.class);
-     }
- 
-     private Soundex encoder = null;
 @@ -340,30 +342,39 @@
      /**
       * Fancy characters are not mapped by the default US mapping.



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-java/commons-codec/files: 1.3-tests-fix.patch
@ 2008-09-25 21:03 Serkan Kaba (serkan)
  0 siblings, 0 replies; 4+ messages in thread
From: Serkan Kaba (serkan) @ 2008-09-25 21:03 UTC (permalink / raw
  To: gentoo-commits

serkan      08/09/25 21:03:05

  Modified:             1.3-tests-fix.patch
  Log:
  Update patch to make it work for new epatch behavior.
  (Portage version: 2.2_rc9/cvs/Linux 2.6.25-gentoo-r7 x86_64)

Revision  Changes    Path
1.3                  dev-java/commons-codec/files/1.3-tests-fix.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-codec/files/1.3-tests-fix.patch?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-codec/files/1.3-tests-fix.patch?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/commons-codec/files/1.3-tests-fix.patch?r1=1.2&r2=1.3

Index: 1.3-tests-fix.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-java/commons-codec/files/1.3-tests-fix.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- 1.3-tests-fix.patch	22 Mar 2008 02:26:42 -0000	1.2
+++ 1.3-tests-fix.patch	25 Sep 2008 21:03:04 -0000	1.3
@@ -1,5 +1,6 @@
---- /var/tmp/portage/dev-java/commons-codec-1.3-r1/work/src/test/org/apache/commons/codec/language/SoundexTest.java	2004-06-02 03:55:38.000000000 +0300
-+++ src/test/org/apache/commons/codec/language/SoundexTest.java	2008-03-22 04:22:58.000000000 +0200
+diff -Nur commons-codec-1.3-src/src/test/org/apache/commons/codec/language/SoundexTest.java commons-codec-1.3-src_patched/src/test/org/apache/commons/codec/language/SoundexTest.java
+--- commons-codec-1.3-src/src/test/org/apache/commons/codec/language/SoundexTest.java	2004-06-02 03:55:38.000000000 +0300
++++ commons-codec-1.3-src_patched/src/test/org/apache/commons/codec/language/SoundexTest.java	2008-09-26 00:00:42.000000000 +0300
 @@ -1,9 +1,10 @@
  /*
 - * Copyright 2001-2004 The Apache Software Foundation.






^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-java/commons-codec/files: 1.3-tests-fix.patch
@ 2010-10-17 12:24 Vlastimil Babka (caster)
  0 siblings, 0 replies; 4+ messages in thread
From: Vlastimil Babka (caster) @ 2010-10-17 12:24 UTC (permalink / raw
  To: gentoo-commits

caster      10/10/17 12:24:03

  Removed:              1.3-tests-fix.patch
  Log:
  Remove old.
  
  (Portage version: 2.2_rc91/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-17 12:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-22  2:26 [gentoo-commits] gentoo-x86 commit in dev-java/commons-codec/files: 1.3-tests-fix.patch Petteri Raty (betelgeuse)
  -- strict thread matches above, loose matches on Subject: below --
2010-10-17 12:24 Vlastimil Babka (caster)
2008-09-25 21:03 Serkan Kaba (serkan)
2008-03-22  2:24 Petteri Raty (betelgeuse)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox