summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-10-30 12:02:44 +0100
committerGitHub <noreply@github.com>2016-10-30 12:02:44 +0100
commitf1b89f17786286ad817914c575672616c493f51a (patch)
treef0fa68596074e14e822595b237b97a6ac4068eed /bin
parent4ed2f98730b52527b6fd8c7317e96d99da39d746 (diff)
parent9a5ce099f1c3559cc46b923d4e192a7be781163c (diff)
Merge pull request #6887 from leezh/regex_module
RegEx re-implemented as a module
Diffstat (limited to 'bin')
-rw-r--r--bin/tests/test_string.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/bin/tests/test_string.cpp b/bin/tests/test_string.cpp
index 2e8f5c3494..4990c58896 100644
--- a/bin/tests/test_string.cpp
+++ b/bin/tests/test_string.cpp
@@ -31,7 +31,6 @@
//#include "math_funcs.h"
#include <stdio.h>
#include "os/os.h"
-#include "drivers/nrex/regex.h"
#include "core/io/ip_address.h"
#include "test_string.h"
@@ -462,18 +461,8 @@ bool test_25() {
bool test_26() {
- OS::get_singleton()->print("\n\nTest 26: RegEx\n");
- RegEx regexp("(.*):(.*)");
-
- int res = regexp.find("name:password");
- printf("\tmatch: %s\n", (res>=0)?"true":"false");
-
- printf("\t%i captures:\n", regexp.get_capture_count());
- for (int i = 0; i<regexp.get_capture_count(); i++)
- {
- printf("%ls\n", regexp.get_capture(i).c_str());
- }
- return (res>=0);
+ //TODO: Do replacement RegEx test
+ return true;
};
struct test_27_data {