String: Remove erase method, bindings can't mutate String
This commit is contained in:
parent
171a69757f
commit
2beaae4b6f
10 changed files with 24 additions and 41 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue