diff options
| author | 2022-03-19 03:34:40 -0300 | |
|---|---|---|
| committer | 2022-05-14 21:25:51 +0200 | |
| commit | 86161e20058b36b9b8da6a0cda2675059dd0aff9 (patch) | |
| tree | 770c0a05b0813ef45362f4bf66f41f1166d92169 | |
| parent | fix splitting logic for runMulti (diff) | |
| download | zig-sqlite-86161e20058b36b9b8da6a0cda2675059dd0aff9.tar.gz zig-sqlite-86161e20058b36b9b8da6a0cda2675059dd0aff9.tar.xz zig-sqlite-86161e20058b36b9b8da6a0cda2675059dd0aff9.zip | |
add newlines and comments to runMulti test case
| -rw-r--r-- | sqlite.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -2325,7 +2325,7 @@ test "sqlite: db init" { | |||
| 2325 | test "sqlite: run multi" { | 2325 | test "sqlite: run multi" { |
| 2326 | var db = try getTestDb(); | 2326 | var db = try getTestDb(); |
| 2327 | defer db.deinit(); | 2327 | defer db.deinit(); |
| 2328 | try db.runMulti("create table a(b int); create table b(c int);", .{}); | 2328 | try db.runMulti("create table a(b int);\n\n--test comment\ncreate table b(c int);", .{}); |
| 2329 | const val = try db.one(i32, "select max(c) from b", .{}, .{}); | 2329 | const val = try db.one(i32, "select max(c) from b", .{}, .{}); |
| 2330 | try testing.expectEqual(@as(?i32, 0), val); | 2330 | try testing.expectEqual(@as(?i32, 0), val); |
| 2331 | } | 2331 | } |