diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2021-11-11 09:08:08 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-11-11 11:23:32 +0100 |
commit | 2beaae4b6f1c4a2c3833a5e205157fd3be2fcabc (patch) | |
tree | 96b7ca74ef9f48ecba1181edb5ae85fca557242a /tests/core | |
parent | 171a69757f575bbc55c686956097c7b4434ec1f8 (diff) |
String: Remove `erase` method, bindings can't mutate String
Diffstat (limited to 'tests/core')
-rw-r--r-- | tests/core/string/test_string.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/core/string/test_string.h b/tests/core/string/test_string.h index e5b26cf5a4..00a9a8779a 100644 --- a/tests/core/string/test_string.h +++ b/tests/core/string/test_string.h @@ -490,12 +490,6 @@ TEST_CASE("[String] Splitting") { } } -TEST_CASE("[String] Erasing") { - String s = "Josephine is such a cute girl!"; - s.erase(s.find("cute "), String("cute ").length()); - CHECK(s == "Josephine is such a girl!"); -} - struct test_27_data { char const *data; char const *part; |