mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Added test and updated releasenotes for formatter changes.
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
- Added @str_hash, @str_upper, @str_lower, @str_find compile time macros.
|
||||
- Remove "panic" text from unreachable() when safe mode is turned off.
|
||||
- Added `@unaligned_store` and `@unaligned_load`.
|
||||
- Null ZString, DString or pointer prints "(null)" for printf.
|
||||
|
||||
## 0.6.0 Change list
|
||||
|
||||
|
||||
@@ -12,6 +12,16 @@ fn void test_starts_with()
|
||||
assert(!s.starts_with("o"));
|
||||
}
|
||||
|
||||
fn void test_print_null()
|
||||
{
|
||||
ZString z;
|
||||
int* y;
|
||||
ZString w = "hello";
|
||||
String s = string::new_format("%s %s %s", z, w, y);
|
||||
defer free(s);
|
||||
assert(s == "(null) hello (null)");
|
||||
}
|
||||
|
||||
fn void test_strip()
|
||||
{
|
||||
String s = "ofke";
|
||||
|
||||
Reference in New Issue
Block a user