diff options
| author | 2020-11-26 00:47:21 +0100 | |
|---|---|---|
| committer | 2020-11-26 00:47:21 +0100 | |
| commit | c7fcfce59061f424f0c21edc566e1ee0166c37c3 (patch) | |
| tree | 131f89ffb9589f9d938f3f0d1788270af1d24917 | |
| parent | return the slice from toOwnedSlice (diff) | |
| download | zig-sqlite-c7fcfce59061f424f0c21edc566e1ee0166c37c3.tar.gz zig-sqlite-c7fcfce59061f424f0c21edc566e1ee0166c37c3.tar.xz zig-sqlite-c7fcfce59061f424f0c21edc566e1ee0166c37c3.zip | |
replace span() with the field items
| -rw-r--r-- | sqlite.zig | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -968,10 +968,10 @@ test "sqlite: statement iterator" { | |||
| 968 | } | 968 | } |
| 969 | 969 | ||
| 970 | // Check the data | 970 | // Check the data |
| 971 | testing.expectEqual(expected_rows.span().len, rows.span().len); | 971 | testing.expectEqual(expected_rows.items.len, rows.items.len); |
| 972 | 972 | ||
| 973 | for (rows.span()) |row, j| { | 973 | for (rows.items) |row, j| { |
| 974 | const exp_row = expected_rows.span()[j]; | 974 | const exp_row = expected_rows.items[j]; |
| 975 | testing.expectEqualStrings(exp_row.name, row.name.data); | 975 | testing.expectEqualStrings(exp_row.name, row.name.data); |
| 976 | testing.expectEqual(exp_row.age, row.age); | 976 | testing.expectEqual(exp_row.age, row.age); |
| 977 | } | 977 | } |