aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java
blob: 179372297c5e8f981fde24dd89773de528df3500 (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
package cgeo.geocaching.test;

import cgeo.geocaching.utils.Log;

import android.test.AndroidTestCase;

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() {

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

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

    }
}