aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java
blob: b920772386063b84838aa414f7c080b8d032b1cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package cgeo.geocaching.test;

import cgeo.geocaching.Settings;

import android.test.AndroidTestCase;
import android.util.Log;

import java.util.List;

/**
 * Test class to compare the performance of two regular expressions on given data.
 * Can be used to improve the time needed to parse the cache data
 *
 * @author blafoo
 */
public class RegExRealPerformanceTest extends AndroidTestCase {

    public static void testRegEx() {

        List<String> output = RegExPerformanceTest.doTheTests(10);

        for (String s : output) {
            Log.d(Settings.tag, s);
        }

    }
}