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

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

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

        for (String s : output) {
            Log.w(cgSettings.tag, s);
        }

    }
}