From 0b3705a0124a33ff9cc0e12301af167ea16504d0 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Mon, 5 Jan 2009 21:11:44 +0000 Subject: [PATCH] remove 2 invalid tests of modified utf8 null byte git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@731727 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/lucene/index/TestIndexInput.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/test/org/apache/lucene/index/TestIndexInput.java b/src/test/org/apache/lucene/index/TestIndexInput.java index 6abf4c743a3..de2987a8a58 100644 --- a/src/test/org/apache/lucene/index/TestIndexInput.java +++ b/src/test/org/apache/lucene/index/TestIndexInput.java @@ -58,13 +58,6 @@ public class TestIndexInput extends LuceneTestCase { // 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 @@ public class TestIndexInput extends LuceneTestCase { assertEquals("\u0000",is.readString()); assertEquals("Lu\u0000ce\u0000ne",is.readString()); - - assertEquals("\u0000",is.readString()); - assertEquals("Lu\u0000ce\u0000ne",is.readString()); } /**