String: Remove erase method, bindings can't mutate String

This commit is contained in:
Rémi Verschelde 2021-11-11 09:08:08 +01:00
parent 171a69757f
commit 2beaae4b6f
No known key found for this signature in database
GPG key ID: C3336907360768E1
10 changed files with 24 additions and 41 deletions

View file

@ -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;