summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2020-12-21 00:37:57 +0100
committerGravatar Vincent Rischmann2020-12-21 00:37:57 +0100
commit85b7be031fcc1a5604b6eb5b0d46948b8c240b6e (patch)
tree1bd0c8b075fbfcd852ba1ed2bd5594f456886fda /sqlite.zig
parentimprove readme (diff)
downloadzig-sqlite-85b7be031fcc1a5604b6eb5b0d46948b8c240b6e.tar.gz
zig-sqlite-85b7be031fcc1a5604b6eb5b0d46948b8c240b6e.tar.xz
zig-sqlite-85b7be031fcc1a5604b6eb5b0d46948b8c240b6e.zip
actually check the value of is_id
Diffstat (limited to 'sqlite.zig')
-rw-r--r--sqlite.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/sqlite.zig b/sqlite.zig
index d195811..817cff8 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -824,6 +824,7 @@ test "sqlite: read in an anonymous struct" {
824 testing.expectEqualStrings(exp.name, row.?.name); 824 testing.expectEqualStrings(exp.name, row.?.name);
825 testing.expectEqualStrings(exp.name, mem.spanZ(&row.?.name_2)); 825 testing.expectEqualStrings(exp.name, mem.spanZ(&row.?.name_2));
826 testing.expectEqual(exp.age, row.?.age); 826 testing.expectEqual(exp.age, row.?.age);
827 testing.expect(row.?.is_id);
827} 828}
828 829
829test "sqlite: read in a Text struct" { 830test "sqlite: read in a Text struct" {