mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Update tests to (Foo) { ... } syntax.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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[..])!!;
|
||||
|
||||
Reference in New Issue
Block a user