mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Deprecated DString.append_chars, use DString.append_string
- Deprecated `DString.append_string` for DStrings, use `DString.append_dstring` instead. - Added `DString.append_char_buffer`.
This commit is contained in:
@@ -96,7 +96,7 @@ fn void test_append()
|
||||
assert(s == "éèà", "got '%s'; want 'éèà'", s);
|
||||
str.clear();
|
||||
|
||||
str.append_chars("foo");
|
||||
str.append_string("foo");
|
||||
s = str.str_view();
|
||||
assert(s == "foo", "got '%s'; want 'foo'", s);
|
||||
str.clear();
|
||||
@@ -113,7 +113,7 @@ fn void test_append()
|
||||
assert(s == "xxxyyy", "got '%s'; want 'xxxyyy'", s);
|
||||
|
||||
str3.clear();
|
||||
str3.append_string(str2);
|
||||
str3.append_dstring(str2);
|
||||
s = str3.str_view();
|
||||
assert(s == "yyy", "got '%s'; want 'yyy'", s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user