You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2012/07/05 15:53:52 UTC
svn commit: r1357607 - in /lucene/dev/branches/branch_4x: ./ lucene/
lucene/core/
lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java
Author: rmuir
Date: Thu Jul 5 13:53:51 2012
New Revision: 1357607
URL: http://svn.apache.org/viewvc?rev=1357607&view=rev
Log:
LUCENE-4194: fix test
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/lucene/ (props changed)
lucene/dev/branches/branch_4x/lucene/core/ (props changed)
lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java
Modified: lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java?rev=1357607&r1=1357606&r2=1357607&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java Thu Jul 5 13:53:51 2012
@@ -254,7 +254,7 @@ public class TestPositionIncrement exten
for (byte[] bytes : payloads) {
count++;
if (VERBOSE) {
- System.out.println(" payload: " + new String(bytes));
+ System.out.println(" payload: " + new String(bytes, "UTF-8"));
}
}
}
@@ -281,7 +281,7 @@ public class TestPositionIncrement exten
Collection<byte[]> pls = psu.getPayloadsForQuery(snq);
count = pls.size();
for (byte[] bytes : pls) {
- String s = new String(bytes);
+ String s = new String(bytes, "UTF-8");
//System.out.println(s);
sawZero |= s.equals("pos: 0");
}