summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2020-11-26 00:47:21 +0100
committerGravatar Vincent Rischmann2020-11-26 00:47:21 +0100
commitc7fcfce59061f424f0c21edc566e1ee0166c37c3 (patch)
tree131f89ffb9589f9d938f3f0d1788270af1d24917
parentreturn the slice from toOwnedSlice (diff)
downloadzig-sqlite-c7fcfce59061f424f0c21edc566e1ee0166c37c3.tar.gz
zig-sqlite-c7fcfce59061f424f0c21edc566e1ee0166c37c3.tar.xz
zig-sqlite-c7fcfce59061f424f0c21edc566e1ee0166c37c3.zip
replace span() with the field items
-rw-r--r--sqlite.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/sqlite.zig b/sqlite.zig
index 1145a9e..c479e5c 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -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 }