mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
add DString.insert_at (#1026)
* add DString.insert * make conv::utf32to8 more C3-like
This commit is contained in:
@@ -4,7 +4,7 @@ import std::io;
|
||||
fn void! comparison_helper_32_to_8(Char32 c32, String expected_output)
|
||||
{
|
||||
char[8] out;
|
||||
usz len = conv::char32_to_utf8(c32, &out, 4)!;
|
||||
usz len = conv::char32_to_utf8(c32, &out)!;
|
||||
assert(len == expected_output.len, "Len should be 1");
|
||||
foreach (i, c : expected_output)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user