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:
@@ -36,7 +36,7 @@ fn void csv_each_row()
|
||||
String[] want = t.want;
|
||||
|
||||
CsvReader r;
|
||||
r.init(ByteReader{}.init(t.input), t.sep);
|
||||
r.init((ByteReader){}.init(t.input), t.sep);
|
||||
r.@each_row(; String[] row) {
|
||||
foreach (i, s : row) {
|
||||
assert(want.len > 0,
|
||||
@@ -58,7 +58,7 @@ fn void csv_row()
|
||||
","
|
||||
};
|
||||
CsvReader r;
|
||||
r.init(ByteReader{}.init(t.input), t.sep);
|
||||
r.init((ByteReader){}.init(t.input), t.sep);
|
||||
CsvRow row = r.read_temp_row()!!;
|
||||
assert(row.list.len == t.want.len, "not enough records found");
|
||||
for (int i = 0; i < row.list.len; i++) {
|
||||
|
||||
Reference in New Issue
Block a user