aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java')
-rw-r--r--tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java b/tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java
new file mode 100644
index 0000000..eda2f6d
--- /dev/null
+++ b/tests/src/cgeo/geocaching/test/RegExRealPerformanceTest.java
@@ -0,0 +1,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);
+ }
+
+ }
+}