Update tests to (Foo) { ... } syntax.

This commit is contained in:
Christoffer Lerno
2025-02-18 18:53:30 +01:00
parent 168c11e006
commit cbacd64987
98 changed files with 449 additions and 551 deletions

View File

@@ -8,7 +8,7 @@ fn void test_multiwriter()
defer mw.free();
String want = "foobar";
io::copy_to(ByteReader{}.init(want), &mw)!!;
io::copy_to((ByteReader){}.init(want), &mw)!!;
assert(w1.str_view() == want,
"invalid write; got: %s, want: %s", w1.str_view(), want);

View File

@@ -5,7 +5,7 @@ fn void test_teereader()
String want = "foobar";
ByteWriter w;
TeeReader r = tee_reader(ByteReader{}.init(want), w.temp_init());
TeeReader r = tee_reader((ByteReader){}.init(want), w.temp_init());
char[16] buf;
usz n = r.read(buf[..])!!;