diff options
Diffstat (limited to '')
| -rw-r--r-- | vtab.zig | 7 |
1 files changed, 0 insertions, 7 deletions
| @@ -1140,9 +1140,6 @@ const TestVirtualTableCursor = struct { | |||
| 1140 | pub fn filter(cursor: *TestVirtualTableCursor, diags: *VTabDiagnostics, index: IndexIdentifier, args: []FilterArg) FilterError!void { | 1140 | pub fn filter(cursor: *TestVirtualTableCursor, diags: *VTabDiagnostics, index: IndexIdentifier, args: []FilterArg) FilterError!void { |
| 1141 | _ = diags; | 1141 | _ = diags; |
| 1142 | 1142 | ||
| 1143 | debug.print("idx num: {d}\n", .{index.num}); | ||
| 1144 | debug.print("idx str: {s}\n", .{index.str}); | ||
| 1145 | |||
| 1146 | var id = index.str; | 1143 | var id = index.str; |
| 1147 | 1144 | ||
| 1148 | // NOTE(vincent): this is an ugly ass parser for the index string, don't judge me. | 1145 | // NOTE(vincent): this is an ugly ass parser for the index string, don't judge me. |
| @@ -1173,8 +1170,6 @@ const TestVirtualTableCursor = struct { | |||
| 1173 | return error.InvalidColumn; | 1170 | return error.InvalidColumn; |
| 1174 | } | 1171 | } |
| 1175 | } | 1172 | } |
| 1176 | |||
| 1177 | debug.print("expected args: {d}\n", .{i}); | ||
| 1178 | } | 1173 | } |
| 1179 | 1174 | ||
| 1180 | pub const NextError = error{}; | 1175 | pub const NextError = error{}; |
| @@ -1269,8 +1264,6 @@ test "virtual table" { | |||
| 1269 | try testing.expect(rows.len > 0); | 1264 | try testing.expect(rows.len > 0); |
| 1270 | 1265 | ||
| 1271 | for (rows) |row| { | 1266 | for (rows) |row| { |
| 1272 | debug.print("result row: id={d} foo={s} bar={s} baz={d}\n", .{ row.id, row.foo, row.bar, row.baz }); | ||
| 1273 | |||
| 1274 | try testing.expectEqualStrings("Vincent", row.foo); | 1267 | try testing.expectEqualStrings("Vincent", row.foo); |
| 1275 | try testing.expectEqualStrings("Michel", row.bar); | 1268 | try testing.expectEqualStrings("Michel", row.bar); |
| 1276 | try testing.expect(row.baz > 2); | 1269 | try testing.expect(row.baz > 2); |