Author: tdunning
Date: Tue Aug 17 22:42:20 2010
New Revision: 986514

URL: http://svn.apache.org/viewvc?rev=986514&view=rev
Log:
Forced locale to EN.US

Modified:
    
mahout/trunk/core/src/test/java/org/apache/mahout/vectors/TextValueEncoderTest.java
    
mahout/trunk/core/src/test/java/org/apache/mahout/vectors/WordLikeValueEncoderTest.java

Modified: 
mahout/trunk/core/src/test/java/org/apache/mahout/vectors/TextValueEncoderTest.java
URL: 
http://svn.apache.org/viewvc/mahout/trunk/core/src/test/java/org/apache/mahout/vectors/TextValueEncoderTest.java?rev=986514&r1=986513&r2=986514&view=diff
==============================================================================
--- 
mahout/trunk/core/src/test/java/org/apache/mahout/vectors/TextValueEncoderTest.java
 (original)
+++ 
mahout/trunk/core/src/test/java/org/apache/mahout/vectors/TextValueEncoderTest.java
 Tue Aug 17 22:42:20 2010
@@ -24,6 +24,8 @@ import org.apache.mahout.vectors.StaticW
 import org.apache.mahout.vectors.TextValueEncoder;
 import org.junit.Test;
 
+import java.util.Locale;
+
 import static org.junit.Assert.assertEquals;
 
 public class TextValueEncoderTest {
@@ -59,6 +61,7 @@ public class TextValueEncoderTest {
 
   @Test
   public void testAsString() {
+    Locale.setDefault(new Locale("EN", "US"));
     TextValueEncoder enc = new TextValueEncoder("text");
     assertEquals("[text:test1:1.0000, text:and:1.0000, text:more:1.0000]", 
enc.asString("test1 and more"));
   }

Modified: 
mahout/trunk/core/src/test/java/org/apache/mahout/vectors/WordLikeValueEncoderTest.java
URL: 
http://svn.apache.org/viewvc/mahout/trunk/core/src/test/java/org/apache/mahout/vectors/WordLikeValueEncoderTest.java?rev=986514&r1=986513&r2=986514&view=diff
==============================================================================
--- 
mahout/trunk/core/src/test/java/org/apache/mahout/vectors/WordLikeValueEncoderTest.java
 (original)
+++ 
mahout/trunk/core/src/test/java/org/apache/mahout/vectors/WordLikeValueEncoderTest.java
 Tue Aug 17 22:42:20 2010
@@ -27,6 +27,7 @@ import org.apache.mahout.vectors.StaticW
 import org.junit.Test;
 
 import java.util.Iterator;
+import java.util.Locale;
 
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
@@ -50,6 +51,7 @@ public class WordLikeValueEncoderTest {
 
   @Test
   public void testAsString() {
+    Locale.setDefault(new Locale("EN", "US"));
     FeatureVectorEncoder enc = new StaticWordValueEncoder("word");
     assertEquals("word:w1:1.0000", enc.asString("w1"));
   }


Reply via email to