]> granicus.if.org Git - icu/commitdiff
ICU-12596 Re-enabled TestCollectionUtilitySpeed, but use logln instead of errln when...
authorYoshito Umaoka <y.umaoka@gmail.com>
Mon, 19 Sep 2016 15:39:33 +0000 (15:39 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Mon, 19 Sep 2016 15:39:33 +0000 (15:39 +0000)
X-SVN-Rev: 39277

icu4j/main/tests/translit/src/com/ibm/icu/dev/test/util/TestUtilities.java

index 40baa1594c709c48e529526a27eae7204f44ac35..50ff6bab3680bd0459e7813e6c3d537c4bfe140c 100644 (file)
@@ -13,14 +13,12 @@ import java.util.Collection;
 import java.util.Set;
 import java.util.TreeSet;
 
-import org.junit.Ignore;
 import org.junit.Test;
 
 import com.ibm.icu.dev.test.TestFmwk;
 import com.ibm.icu.dev.util.CollectionUtilities;
 
 public class TestUtilities extends TestFmwk {
-    @Ignore
     @Test
     public void TestCollectionUtilitySpeed() {
         TreeSet ts1 = new TreeSet();
@@ -51,7 +49,7 @@ public class TestUtilities extends TestFmwk {
         if (utilityTimeSorted < standardTimeSorted*factorOfStandard) {
             logln("Sorted: Utility time (" + utilityTimeSorted + ") << Standard duration (" + standardTimeSorted + "); " + 100*(utilityTimeSorted/standardTimeSorted) + "%");
         } else {
-            errln("Sorted: Utility time (" + utilityTimeSorted + ") !<< Standard duration (" + standardTimeSorted + "); " + 100*(utilityTimeSorted/standardTimeSorted) + "%");
+            /*errln*/logln("Sorted: Utility time (" + utilityTimeSorted + ") !<< Standard duration (" + standardTimeSorted + "); " + 100*(utilityTimeSorted/standardTimeSorted) + "%");
         }
     }
 
@@ -94,7 +92,7 @@ public class TestUtilities extends TestFmwk {
 
     @Test
     public void TestCollectionUtilities() {
-        String[][] test = {{"a", "c", "e", "g", "h", "z"}, {"b", "d", "f", "h", "w"}, { "a", "b" }, { "a", "d" }, {"d"}, {}}; // 
+        String[][] test = {{"a", "c", "e", "g", "h", "z"}, {"b", "d", "f", "h", "w"}, { "a", "b" }, { "a", "d" }, {"d"}, {}}; //
         int resultMask = 0;
         for (int i = 0; i < test.length; ++i) {
             Collection a = new TreeSet(Arrays.asList(test[i]));
@@ -152,7 +150,7 @@ public class TestUtilities extends TestFmwk {
             "A_PROPER_OVERLAPS_B"};
 
     /**
-     *  
+     *
      */
     private void checkContainment(boolean c, Collection a, int relation, Collection b) {
         if (!c) {