lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r731727 - /lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexInput.java
Date Mon, 05 Jan 2009 21:11:44 GMT
Author: mikemccand
Date: Mon Jan  5 13:11:44 2009
New Revision: 731727

URL: http://svn.apache.org/viewvc?rev=731727&view=rev
Log:
remove 2 invalid tests of modified utf8 null byte

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexInput.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexInput.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexInput.java?rev=731727&r1=731726&r2=731727&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexInput.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexInput.java Mon Jan  5 13:11:44
2009
@@ -58,13 +58,6 @@
       // null bytes
       0x01, 0x00,
       0x08, 'L', 'u', 0x00, 'c', 'e', 0x00, 'n', 'e',
-      
-      // Modified UTF-8 null bytes
-      0x02, (byte) 0xC0, (byte) 0x80,
-      0x0A, 'L', 'u', (byte) 0xC0, (byte) 0x80, 
-            'c', 'e', (byte) 0xC0, (byte) 0x80, 
-            'n', 'e',
-
     });
         
     assertEquals(128,is.readVInt());
@@ -85,9 +78,6 @@
     
     assertEquals("\u0000",is.readString());
     assertEquals("Lu\u0000ce\u0000ne",is.readString());
-
-    assertEquals("\u0000",is.readString());
-    assertEquals("Lu\u0000ce\u0000ne",is.readString());
   }
 
   /**



Mime
View raw message