Added test and updated releasenotes for formatter changes.

This commit is contained in:
Christoffer Lerno
2024-07-02 23:28:23 +02:00
parent 3396b20661
commit 3be1bf4384
2 changed files with 11 additions and 0 deletions

View File

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