summaryrefslogtreecommitdiffstats
path: root/modules/regex/tests
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2021-04-25 12:53:22 +0100
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2022-07-29 19:43:23 +0100
commitdb1270d521227010661fdb32c7bbf67f1e518992 (patch)
tree58f3b01a6eeb978db61d07ac852a93ef9e75f459 /modules/regex/tests
parent6ba7dacf6bde082e906ec7ff94d3e4f7975b0697 (diff)
downloadredot-engine-db1270d521227010661fdb32c7bbf67f1e518992.tar.gz
Generate error if RegEx offset is negative
Diffstat (limited to 'modules/regex/tests')
-rw-r--r--modules/regex/tests/test_regex.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/modules/regex/tests/test_regex.h b/modules/regex/tests/test_regex.h
index 3f500e7b2f..91af393db1 100644
--- a/modules/regex/tests/test_regex.h
+++ b/modules/regex/tests/test_regex.h
@@ -130,16 +130,6 @@ TEST_CASE("[RegEx] Empty Pattern") {
CHECK(re.is_valid());
}
-TEST_CASE("[RegEx] Invalid offset") {
- const String s = "Godot";
-
- RegEx re("o");
- REQUIRE(re.is_valid());
- CHECK(re.search(s, -1) == nullptr);
- CHECK(re.search_all(s, -1).size() == 0);
- CHECK(re.sub(s, "", true, -1) == "");
-}
-
TEST_CASE("[RegEx] Invalid end position") {
const String s = "Godot";